$${ #input = $$[Anzahl]; IF(%#input% < 1); LOG(&7[Macro] &cUngültige Eingabe); STOP; ENDIF; IF(%#input% > 50); LOG(&7[Macro] &cDas wird zuviel): STOP; ENDIF; &responsenames = HTTPGET("http://www.letsmine.eu/api/game/v1/banlist/","",""); &namesarray[] = SPLIT("},{",%&responsenames%); ARRAYSIZE(&namesarray,#size0); #sizeabsolute0 = ((%#size0%) - 1); &prepare = %&namesarray[%#sizeabsolute0%]% #sizemin = ((%#size0%) - %#input%); FOR(#for,%#sizeabsolute0%,%#sizemin%); &prepare = %&namesarray[%#for%]% &array[] = SPLIT(",",%&prepare%); ARRAYSIZE(&array,#size2); MATCH(%&array[0]%,\"ban\":\"(.*)\",{&name}); MATCH(%&array[1]%,\"reason\":\"(.*)\",{&reason}); IF(%&reason% == "Griefen bringt dich nicht weiter. Mehr Infos im Forum: http://lmrl.e"); &newreason = Griefing ELSE; &newreason = %&reason% ENDIF; MATCH(%&array[2]%,\"time_from\":\"(.*)\",{&date}); &timetoarray[] = SPLIT( ,%&date%); &bandate = %&timetoarray[0]% &bantime = %&timetoarray[1]% &datearray[] = SPLIT(-,%&bandate%); &year = %&datearray[0]% &month = %&datearray[1]% &day = %&datearray[2]% &timearray[] = SPLIT(.,%&bantime%); &time = %&timearray[0]% &unban = "" MATCH(%&array[3]%,\"time_to\":\"(.*)\",{&unban}); &timetoarray1[] = SPLIT( ,%&unban%); &bandate1 = %&timetoarray1[0]% &bantime1 = %&timetoarray1[1]% &datearray1[] = SPLIT(-,%&bandate1%); &year1 = %&datearray1[0]% &month1 = %&datearray1[1]% &day1 = %&datearray1[2]% &timearray1[] = SPLIT(.,%&bantime1%); &time1 = %&timearray1[0]% MATCH(%&array[4]%,\"uuid\":\"(.*)\",{&uuid}); &responseuuid = HTTPGET("https://eu.mc-api.net/v3/name/%&uuid%","",""); &uuidnamesarray[] = SPLIT("},{",%&responseuuid%); ARRAYSIZE(&uuidnamesarray,#size3); #sizeabsolute3 = ((%#size3%) - 1); &prepareuuid = %&uuidnamesarray[%#sizeabsolute3%]% &uuidarray[] = SPLIT(",",%&prepareuuid%); ARRAYSIZE(&uuidarray,#size4); #sizeabsolute4 = ((%#size4%) - 1); MATCH(%&uuidarray[3]%,\"name\":\"(.*)\",{&nameuuid}) IF(%&nameuuid% == ""); &newnameuuid = "" &add = &6(Unbekannter Mod) ELSE; &newnameuuid = &a von&2 %&nameuuid% &add = "" ENDIF; IFMATCHES(%&uuid%,"00000000-0000-0000-0000-00000000000"); LOG(&aSpieler &c%&name%&a wurde von der &2Console &agebannt.); ELSE; LOG(&aSpieler &c%&name%&a wurde&2%&newnameuuid% &agebannt. %&add%); ENDIF;ENDIF; LOG(&7 Grund: &f%&newreason%); IF(%&day1% = ""); LOG(&7 Wann: &f%&day%.%&month%.%&year% &7um &f%&time% &7Uhr. &7 Bis: &fPermanent); ELSE; LOG(&7 Wann: &f%&day%.%&month%.%&year% &7um &f%&time% &7Uhr. &7 Bis: &f%&day1%.%&month1%.%&year1%); ENDIF; NEXT; }$$