options: permission: admintool nopermission: &6Nie posiadasz uprawnien. command /ban []: trigger: if player has permission "{@permission}.ban": set {_strony} to rounded up (size of all players - 1) / 54 if {_strony} is 0: stop if arg 1 is between 1 and {_strony}: open chest with 6 rows named "&9&lAdmin&3&lBan &8(&7%arg 1%&8)" to player wait 2 tick set {_max} to arg 1 * 53 set {_min} to {_max} - 52 loop all players: if "%loop-player%" is not "%player%": add loop-player to {_ap::*} set {_num} to size of {_ap::*} if (arg + 1) is smaller than or equal to {_strony}: set player's current inventory's slot 53 to paper named "&6Nastepna strona." set {_i} to 0 loop {_max} times: loop-number is between {_min} and {_max} loop-number <= {_num}: set player's current inventory's slot {_i} to {_ap::%loop-number%}'s skull named "&c%{_ap::%loop-number%}%" with lore "&6Zbanuj gracza." add 1 to {_i} stop send "&c* {@nopermission}" command /mute: trigger: if player has permission "{@permission}.mute": stop send "&c* {@nopermission}" command /kick: trigger: if player has permission "{@permission}.kick": stop send "&c* {@nopermission}" command /tempban [] [] []: trigger: if player has permission "{@permission}.tempban": if arg 2 is not set: set {_strony} to rounded up (size of all players - 1) / 54 if {_strony} is 0: stop if arg 1 is between 1 and {_strony}: open chest with 6 rows named "&9&lAdmin&3Tempban &8(&7%arg 1%&8)" to player wait 2 tick set {_max} to arg 1 * 53 set {_min} to {_max} - 52 loop all players: if "%loop-player%" is not "%player%": add loop-player to {_ap::*} set {_num} to size of {_ap::*} if (arg 1 + 1) is smaller than or equal to {_strony}: set player's current inventory's slot 53 to paper named "&6Nastepna strona." set {_i} to 0 loop {_max} times: loop-number is between {_min} and {_max} loop-number <= {_num}: set player's current inventory's slot {_i} to {_ap::%loop-number%}'s skull named "&c%{_ap::%loop-number%}%" with lore "&6Zbanuj gracza na czas." add 1 to {_i} stop send "&c* {@nopermission}" command /unban [] []: trigger: if player has permission "{@permission}.unban": if arg 2 is not set: open chest with 1 rows named "&9&lAdmin&3Unban" to player wait 2 tick set player's current inventory's slot 0 to paper named "&6Unban" with lore "&aOdbanuj gracza zbanowanego na zawsze.||&6Zbanowani gracze: &c%size of {admintool::ban::*}%" set player's current inventory's slot 1 to paper named "&6Unban" with lore "&aOdbanuj gracza zbanowanego na czas.||&6Zbanowani gracze: &c%size of {admintool::tempban::*}%" stop if arg 2 is "ban": set {_strony} to rounded up size of {admintool::ban::*} / 54 if {_strony} is 0: stop if arg 1 is between 1 and {_strony}: open chest with 6 rows named "&9&lAdmin&3Unban &8(&7%arg 1%&8)" to player wait 2 tick set {_max} to arg 1 * 53 set {_min} to {_max} - 52 set {_num} to size of {admintool::ban::*} if (arg 1 + 1) is smaller than or equal to {_strony}: set player's current inventory's slot 53 to paper named "&6Nastepna strona." set {_i} to 0 set {_t} to 1 loop {admintool::ban::*}: {_t} is between {_min} and {_max}: {_t} <= {_num}: set {_p} to {admintool::ban::%loop-index%} replace all "%nl%" with "||" in {_p} set player's current inventory's slot {_i} to feather named "&6%loop-index%" with lore "&aOdbanuj gracza %loop-index%||||%{_p}%" add 1 to {_i} add 1 to {_t} if arg 2 is "tempban": set {_strony} to rounded up size of {admintool::tempban::*} / 54 if {_strony} is 0: stop if arg 1 is between 1 and {_strony}: open chest with 6 rows named "&9&lAdmin&3Untempban &8(&7%arg 1%&8)" to player wait 2 tick set {_max} to arg 1 * 53 set {_min} to {_max} - 52 set {_num} to size of {admintool::tempban::*} if (arg 1 + 1) is smaller than or equal to {_strony}: set player's current inventory's slot 53 to paper named "&6Nastepna strona." set {_i} to 0 set {_t} to 1 loop {admintool::tempban::*}: {_t} is between {_min} and {_max}: {_t} <= {_num}: set player's current inventory's slot {_i} to feather named "&6%loop-index%" with lore "&aOdbanuj gracza %loop-index%" add 1 to {_i} add 1 to {_t} stop send "&c* {@nopermission}" #----- Inventory Click -----" on inventory click: if "%uncoloured inventory name of player's current inventory%" contains "AdminBan": if slot is smaller than 0: stop cancel event if player's current inventory's slot slot is not air: if player's current inventory's slot slot is paper: if name of player's current inventory's slot slot is "&6Nastepna strona.": set {_i} to "%uncoloured inventory name of player's current inventory%" replace all "AdminBan (" with "" in {_i} replace all ")" with "" in {_i} set {_i} to {_i} parsed as integer close player's inventory wait 2 tick execute player command "ban %{_i} + 1%" stop set {_player} to "%uncoloured name of player's current inventory's slot slot%" parsed as offlineplayer close player's inventory wait 2 tick open chest with 1 rows named "&9Banujesz: &3%{_player}%" to player wait 2 tick #Tutaj dodajesz powody banowania." set player's current inventory's slot 0 to paper named "&6Cheaty" with lore "&aZbanujesz gracza %{_player}% za cheaty." set player's current inventory's slot 1 to paper named "&6Slowa" with lore "&aZbanujesz gracza %{_player}% za slowa." set player's current inventory's slot 2 to paper named "&6Afk" with lore "&aZbanujesz gracza %{_player}% za afk." stop stop if "%uncoloured inventory name of player's current inventory%" contains "Banujesz:": if slot is smaller than 0: stop cancel event if player's current inventory's slot slot is not air: set {_player} to "%uncoloured inventory name of player's current inventory%" replace all "Banujesz: " with "" in {_player} set {_player} to {_player} parsed as offlineplayer kick {_player} due to "&cZostales zbanowany za:%nl%%nl% &6%name of player's current inventory's slot slot%" set {admintool::ban::%{_player}%} to "&cZostales zbanowany za:%nl%%nl% &6%name of player's current inventory's slot slot%" send "&c* &7Zbanowales gracza &6%{_player}%" close player's inventory stop stop if "%uncoloured inventory name of player's current inventory%" contains "AdminTempban": if slot is smaller than 0: stop cancel event if player's current inventory's slot slot is not air: if player's current inventory's slot slot is paper: if name of player's current inventory's slot slot is "&6Nastepna strona.": set {_i} to "%uncoloured inventory name of player's current inventory%" replace all "AdminTempban (" with "" in {_i} replace all ")" with "" in {_i} set {_i} to {_i} parsed as integer close player's inventory wait 2 tick execute player command "unban %{_i} + 1% tempban" stop set {_player} to "%uncoloured name of player's current inventory's slot slot%" parsed as offlineplayer close player's inventory wait 2 tick open chest with 1 rows named "&9&lTempczas: &8(&7%{_player}%&8)" to player wait 2 tick set player's current inventory's slot 0 to paper named "&7Informacja" with lore "&6Wybierz licznik czasu." set player's current inventory's slot 1 to feather named "&cSekundy" set player's current inventory's slot 2 to feather named "&cMinuty" set player's current inventory's slot 3 to feather named "&cGodziny" set player's current inventory's slot 4 to feather named "&cDni" stop stop if "%uncoloured inventory name of player's current inventory%" contains "Tempczas:": if slot is smaller than 0: stop cancel event if player's current inventory's slot slot is not air: if slot is 1: set {_n} to "%coloured inventory name of player's current inventory%" replace all ":" in {_n} with "" set {_player} to "%uncoloured inventory name of player's current inventory%" replace all "Tempczas: (" with "" in {_player} replace all ")" with "" in {_player} close player's inventory wait 2 tick open chest with 6 rows named "%coloured {_n}%" to player set {_i} to 0 loop 54 times: set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZbanuj gracza &6&o%{_player}% &ana:||&c* &b%loop-number% sekund" add 1 to {_i} stop if slot is 2: set {_n} to "%coloured inventory name of player's current inventory%" replace all ":" in {_n} with "" set {_player} to "%uncoloured inventory name of player's current inventory%" replace all "Tempczas: (" with "" in {_player} replace all ")" with "" in {_player} close player's inventory wait 2 tick open chest with 6 rows named "%coloured {_n}%" to player set {_i} to 0 loop 54 times: set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZbanuj gracza &6&o%{_player}% &ana:||&c* &b%loop-number% minut" add 1 to {_i} stop if slot is 3: set {_n} to "%coloured inventory name of player's current inventory%" replace all ":" in {_n} with "" set {_player} to "%uncoloured inventory name of player's current inventory%" replace all "Tempczas: (" with "" in {_player} replace all ")" with "" in {_player} close player's inventory wait 2 tick open chest with 6 rows named "%coloured {_n}%" to player set {_i} to 0 loop 24 times: set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZbanuj gracza &6&o%{_player}% &ana:||&c* &b%loop-number% godzin" add 1 to {_i} stop if slot is 4: set {_n} to "%coloured inventory name of player's current inventory%" replace all ":" in {_n} with "" set {_player} to "%uncoloured inventory name of player's current inventory%" replace all "Tempczas: (" with "" in {_player} replace all ")" with "" in {_player} close player's inventory wait 2 tick open chest with 6 rows named "%coloured {_n}%" to player set {_i} to 0 set player's current inventory's slot 53 to paper named "&6Wiecej liczb" loop 53 times: set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZbanuj gracza &6&o%{_player}% &ana:||&c* &b%loop-number% dni" add 1 to {_i} stop stop stop if "%uncoloured inventory name of player's current inventory%" contains "Tempczas": if slot is smaller than 0: stop cancel event if player's current inventory's slot slot is not air: if player's current inventory's slot slot is paper: if name of player's current inventory's slot slot is "&6Wiecej liczb": set {_n} to coloured inventory name of player's current inventory set {_player} to "%uncoloured inventory name of player's current inventory%" replace all "Tempczas (" with "" in {_player} replace all ")" with "" in {_player} close player's inventory wait 2 tick open chest with 6 rows named "%coloured {_n}%" to player set {_i} to 0 set {_t} to 54 loop 54 times: set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZbanuj gracza &6&o%{_player}% &ana:||&c* %{_t}% dni" add 1 to {_t} add 1 to {_i} stop set {_l::*} to lore of player's current inventory's slot slot split at "||" set {_player} to uncoloured {_l::1} replace all "Zbanuj gracza " with "" in {_player} replace all " na:" with "" in {_player} send "%{_player}%" set {_player} to {_player} parsed as offlineplayer set {_l} to uncoloured {_l::2} replace all "* " with "" in {_l} set {_i} to first index of " " in {_l} - 1 characters of {_l} set {_c} to last (length of {_l} - first index of " " in {_l}) characters of uncoloured {_l} set {admintool::tempban::%{_player}%::time} to now if {_c} is "sekund": add "%{_i}% seconds" parsed as time span to {admintool::tempban::%{_player}%::time} set {admintool::tempban::%{_player}%} to "&cZostales zbanowany!%nl%&aBan wygasa:%nl%%nl%&6%{admintool::tempban::%{_player}%::time}%" if {_c} is "minut": add "%{_i}% minutes" parsed as time span to {admintool::tempban::%{_player}%::time} set {admintool::tempban::%{_player}%} to "&cZostales zbanowany!%nl%&aBan wygasa:%nl%%nl%&6%{admintool::tempban::%{_player}%::time}%" if {_c} is "godzin": add "%{_i}% hours" parsed as time span to {admintool::tempban::%{_player}%::time} set {admintool::tempban::%{_player}%} to "&cZostales zbanowany!%nl%&aBan wygasa:%nl%%nl%&6%{admintool::tempban::%{_player}%::time}%" if {_c} is "dni": add "%{_i}% days" parsed as time span to {admintool::tempban::%{_player}%::time} set {admintool::tempban::%{_player}%} to "&cZostales zbanowany!%nl%&aBan wygasa:%nl%%nl%&6%{admintool::tempban::%{_player}%::time}%" kick {_player} due to "%{admintool::tempban::%{_player}%}%" close player's inventory stop stop if "%uncoloured inventory name of player's current inventory%" contains "AdminUnban": if slot is smaller than 0: stop cancel event if player's current inventory's slot slot is not air: if "%uncoloured inventory name of player's current inventory%" doesn't contain "(": if slot is 0: close player's inventory wait 2 tick execute player command "unban 1 ban" stop if slot is 1: close player's inventory wait 2 tick execute player command "unban 1 tempban" stop stop if player's current inventory's slot slot is paper: if name of player's current inventory's slot slot is "&6Nastepna strona.": set {_i} to "%uncoloured inventory name of player's current inventory%" replace all "AdminUnban (" with "" in {_i} replace all ")" with "" in {_i} set {_i} to {_i} parsed as integer send "%{_i}%" close player's inventory wait 2 tick execute player command "unban %{_i} + 1% ban" stop set {_player} to "%uncoloured name of player's current inventory's slot slot%" clear {admintool::ban::%{_player}%} send "&c* &7Odbanowales gracza &6%{_player}%" close player's inventory stop stop if "%uncoloured inventory name of player's current inventory%" contains "AdminUntempban": if slot is smaller than 0: stop cancel event if player's current inventory's slot slot is not air: if player's current inventory's slot slot is paper: if name of player's current inventory's slot slot is "&6Nastepna strona.": set {_i} to "%uncoloured inventory name of player's current inventory%" replace all "AdminUntempban (" with "" in {_i} replace all ")" with "" in {_i} set {_i} to {_i} parsed as integer close player's inventory wait 2 tick execute player command "unban %{_i} + 1% tempban" stop set {_player} to "%uncoloured name of player's current inventory's slot slot%" clear {admintool::tempban::%{_player}%} send "&c* &7Odbanowales gracza &6%{_player}%" close player's inventory stop stop #----- Pozostale Eventy ----" on connect: if {admintool::ban::%player%} is set: kick player due to "%coloured {admintool::ban::%player%}%" stop if {admintool::tempban::%player%} is set: if now is larger than {admintool::tempban::%player%::time}: clear {admintool::tempban::%player%::time} clear {admintool::tempban::%player%} stop kick player due to "%coloured {admintool::tempban::%player%}%" command /fake [] []: trigger: if arg 1 is not set: send "&a/fake set ban/temp" send "&a/fake clear" stop if arg 1 is "set": if arg 2 is "ban": loop 100 times: set {_n} to "" loop 5 times: set {_n} to "%{_n}%%random 1 char string from `a-zA-Z`%" set {admintool::ban::%{_n}%} to "Bo tak" stop if arg 2 is "temp": loop 100 times: set {_n} to "" loop 5 times: set {_n} to "%{_n}%%random 1 char string from `a-zA-Z`%" set {admintool::tempban::%{_n}%} to "Bo tak" stop stop if arg 1 is "clear": clear {admintool::ban::*} clear {admintool::tempban::*} #-------- Skrypt tworzony przez Knugi -------#