on script load: set yaml value "Message.No_Permission" from file "plugins/Sprawdzanie/message.yml" to "&7Nie masz permisji do użycia tej komendy." set yaml value "Message.Player_Already_Check" from file "plugins/Sprawdzanie/message.yml" to "&cNie mozesz sprawdzic gracza, ktory jest juz sprawdzany." set yaml value "Message.Player_Title_Check" from file "plugins/Sprawdzanie/message.yml" to "&8[&4Jeteś sprawdzany&8]" set yaml value "Message.Player_Subtitle_Check" from file "plugins/Sprawdzanie/message.yml" to "&cPatrz na chat" set yaml value "Message.Player_Check" from file "plugins/Sprawdzanie/message.yml" to "&6{gracz} &7jest sprawdzany przez &6{administrator}" set yaml value "Message.Check_Location_Not_Set" from file "plugins/Sprawdzanie/message.yml" to "&8&l» &6Spawn do sprawdzania nie jest ustawiony. Zglos to administracji." set yaml value "Message.Player_Check_Clear" from file "plugins/Sprawdzanie/message.yml" to "&8&l» &6{gracz} &7jest czysty. Dziekujemy za wspolprace." set yaml value "Message.Player_Not_Check" from file "plugins/Sprawdzanie/message.yml" to "&8&l» &6Ten gracz nie jest sprawdzany." set yaml value "Message.Player_Cheaty_Ban" from file "plugins/Sprawdzanie/message.yml" to "&6{gracz} &7zostal zbanowany za &eUzywanie niedozwolonego oprogramowania." set yaml value "Message.Player_Bw_Ban" from file "plugins/Sprawdzanie/message.yml" to "&6{gracz} &7zostal zbanowany za &eBrak wspolpracy." set yaml value "Message.Player_Przyznanie_Ban" from file "plugins/Sprawdzanie/message.yml" to "&6{gracz} &7zostal tymczasowo zbanowany za &ePrzyznanie sie do uzywania cheatow." set yaml value "Cheaty.Type" from file "plugins/Sprawdzanie/config.yml" to "tempban" set yaml value "Cheaty.Time" from file "plugins/Sprawdzanie/config.yml" to "2d" set yaml value "Cheaty.Reason" from file "plugins/Sprawdzanie/config.yml" to "Uzywanie niedozwolonego oprogramowania." set yaml value "BW.Type" from file "plugins/Sprawdzanie/config.yml" to "tempban" set yaml value "BW.Time" from file "plugins/Sprawdzanie/config.yml" to "3d" set yaml value "BW.Reason" from file "plugins/Sprawdzanie/config.yml" to "zostal zbanowany za &eBrak wspolpracy." set yaml value "Przyznanie.Type" from file "plugins/Sprawdzanie/config.yml" to "tempban" set yaml value "Przyznanie.Time" from file "plugins/Sprawdzanie/config.yml" to "3d" set yaml value "Przyznanie.Reason" from file "plugins/Sprawdzanie/config.yml" to "Przyznanie sie do uzywania cheatow." set yaml value "Message.Player_Spawn_Set" from file "plugins/Sprawdzanie/message.yml" to "&cUstawiono spawn dla sprawdzajacych." set yaml value "Message.Admin_Tp" from file "plugins/Sprawdzanie/message.yml" to "&cZostales przeteleportowany." set yaml value "Logout.Type" from file "plugins/Sprawdzanie/config.yml" to "tempban" set yaml value "Logout.Time" from file "plugins/Sprawdzanie/config.yml" to "7d" set yaml value "Logout.Reason" from file "plugins/Sprawdzanie/config.yml" to "Wylogowanie sie podczas sprawdzania." if yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" is not set: add "&7&m--------------&8[&e&lSPRAWDZANIE&8]&7&m--------------" to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" add " " to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" add "&6➱ &asprawdz [help] &8- &9Pokazuje pomoc." to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" add "&6➱ &asprawdz spr [gracz] &8- &9sprawdza gracza." to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" add "&6➱ &asprawdz czysty [gracz] &8- &9uniewinnia gracza." to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" add "&6➱ &asprawdz cheater [gracz] [cheaty] &8- &9banuje gracza permamentnie." to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" add "&6➱ &asprawdz bw [gracz] &8- &9banuje gracz permamentnie." to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" add "&6➱ &asprawdz przyznanie [gracz] &8- &9banuje gracza na 3 dni." to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" add "&6➱ &asprawdz setspawns &8- &9ustawia miejsce teleportacji gracza" to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" add "&6➱ &asprawdz spawns &8- &9teleportuje cie do poczekalni sprawdzanych." to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" add " " to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" add "&7&m--------------&8[&e&lSPRAWDZANIE&8]&7&m--------------&e" to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" set {NO_PERMISSION} to yaml value "Message.No_Permission" from file "plugins/Sprawdzanie/message.yml" set {PLAYER_ALREADY_CHECK} to yaml value "Message.Player_Already_Check" from file "plugins/Sprawdzanie/message.yml" set {PLAYER_TITLE_CHECK} to yaml value "Message.Player_Title_Check" from file "plugins/Sprawdzanie/message.yml" set {PLAYER_SUBTITLE_CHECK} to yaml value "Message.Player_Subtitle_Check" from file "plugins/Sprawdzanie/message.yml" set {PLAYER_CHECK} to yaml value "Message.Player_Check" from file "plugins/Sprawdzanie/message.yml" set {SPAWN_LOC_NOT_SET} to yaml value "Message.Check_Location_Not_Set" from file "plugins/Sprawdzanie/message.yml" set {PLAYER_CLEAR} to yaml value "Message.Player_Check_Clear" from file "plugins/Sprawdzanie/message.yml" set {PLAYER_NOT_CHECK} to yaml value "Message.Player_Not_Check" from file "plugins/Sprawdzanie/message.yml" set {PLAYER_CHEATY_BAN} to yaml value "Message.Player_Cheaty_Ban" from file "plugins/Sprawdzanie/message.yml" set {PLAYER_BW_BAN} to yaml value "Message.Player_Bw_Ban" from file "plugins/Sprawdzanie/message.yml" set {PLAYER_PRZYZNANIE_BAN} to yaml value "Message.Player_Przyznanie_Ban" from file "plugins/Sprawdzanie/message.yml" set {CHEATY_TYPE} to yaml value "Cheaty.Type" from file "plugins/Sprawdzanie/config.yml" set {CHEATY_TIME} to yaml value "Cheaty.Time" from file "plugins/Sprawdzanie/config.yml" set {CHEATY_REASON} to yaml value "Cheaty.Reason" from file "plugins/Sprawdzanie/config.yml" set {BW_TYPE} to yaml value "BW.Type" from file "plugins/Sprawdzanie/config.yml" set {BW_TIME} to yaml value "BW.Time" from file "plugins/Sprawdzanie/config.yml" set {BW_REASON} to yaml value "BW.Reason" from file "plugins/Sprawdzanie/config.yml" set {PRZYZNANIE_TYPE} to yaml value "Przyznanie.Type" from file "plugins/Sprawdzanie/config.yml" set {PRZYZNANIE_TIME} to yaml value "Przyznanie.Time" from file "plugins/Sprawdzanie/config.yml" set {PRZYZNANIE_REASON} to yaml value "Przyznanie.Reason" from file "plugins/Sprawdzanie/config.yml" set {LOGOUT_TYPE} to yaml value "Logout.Type" from file "plugins/Sprawdzanie/config.yml" set {LOGOUT_TIME} to yaml value "Logout.Time" from file "plugins/Sprawdzanie/config.yml" set {LOGOUT_REASON} to yaml value "Logout.Reason" from file "plugins/Sprawdzanie/config.yml" set {SPAWN_LOC_SET} to yaml value "Message.Player_Spawn_Set" from file "plugins/Sprawdzanie/message.yml" set {SPAWN_LOC_TP} to yaml value "Message.Player_Spawn_Set" from file "plugins/Sprawdzanie/message.yml" set {HELP::*} to yaml list "Message.Help" from file "plugins/Sprawdzanie/message.yml" command /sprawdz [] []: permission: sprawdz.sprawdz permission message: %{NO_PERMISSION}% trigger: if arg 1 is not set: loop {HELP::*}: send "%loop-value%" stop if arg 1 is "help": loop {HELP::*}: send "%loop-value%" if arg 1 is "spr": if arg 2 is set: if {s.%player-arg%} is true: send "%{PLAYER_ALREADY_CHECK}%" stop else: if {spawn} is set: set {ll.%player-arg%} to location of player-arg teleport player to {spawn} teleport player-arg to {spawn} set {s.%player-arg%} to true send title "%{PLAYER_TITLE_CHECK}%" with subtitle "%{PLAYER_SUBTITLE_CHECK}%" wait 20 ticks send title "%{PLAYER_TITLE_CHECK}%" with subtitle "%{PLAYER_SUBTITLE_CHECK}%" wait 20 ticks send title "%{PLAYER_TITLE_CHECK}%" with subtitle "%{PLAYER_SUBTITLE_CHECK}%" set {_wiadomosc1} to "%{PLAYER_CHECK}%" replace all "{gracz}" in {_wiadomosc1} with "%player-arg%" replace all "{administrator}" in {_wiadomosc1} with "%player%" broadcast "%{_wiadomosc1}%" stop else: send "%{SPAWN_LOC_NOT_SET}%" stop if arg 1 is "czysty": if arg 2 is set: if {s.%player-arg%} is true: teleport player-arg to {ll.%player-arg%} set {s.%player-arg%} to false set {_wiadomosc2} to "%{PLAYER_CLEAR}%" replace all "{gracz}" in {_wiadomosc2} with "%player-arg%" broadcast "%{_wiadomosc2}%" stop else: send "%{PLAYER_NOT_CHECK}%" stop if arg 1 is "cheater": if arg 2 is set: if {s.%player-arg%} is true: set {s.%player-arg%} to false set {_wiadomosc3} to "%{PLAYER_CHEATY_BAN}%" replace all "{gracz}" in {_wiadomosc3} with "%player-arg%" broadcast "%{_wiadomosc3}%" execute player command "/%{CHEATY_TYPE}% %player-arg% %{CHEATY_TIME}% %{CHEATY_REASON}%" stop else: send "%{PLAYER_NOT_CHECK}%" stop if arg 1 is "bw": if arg 2 is set: if {s.%player-arg%} is true: set {s.%player-arg%} to false set {_wiadomosc4} to "%{PLAYER_BW_BAN}%" replace all "{gracz}" in {_wiadomosc4} with "%player-arg%" broadcast "%{_wiadomosc4}%" execute player command "/%{BW_TYPE}% %player-arg% %{BW_TIME}% %{BW_REASON}%" stop else: send "%{PLAYER_NOT_CHECK}%" stop if arg 1 is "przyznanie": if arg 2 is set: if {s.%player-arg%} is true: set {s.%player-arg%} to false set {_wiadomosc4} to "%{PLAYER_PRZYZNANIE_BAN}%" replace all "{gracz}" in {_wiadomosc4} with "%player-arg%" broadcast "%{_wiadomosc4}%" execute player command "/%{PRZYZNANIE_TYPE}% %player-arg% %{PRZYZNANIE_TIME}% %{PRZYZNANIE_REASON}%" stop else: send "%{PLAYER_NOT_CHECK}%" stop if arg 1 is "setspawns": set {spawn} to location of player send "%{SPAWN_LOC_SET}%" stop if arg 1 is "spawns": teleport player to {spawn} send "%{SPAWN_LOC_TP}%" stop on quit: if {s.%player%} is true: set {s.%player%} to false teleport player to {ll.%player%} execute console command "/%{LOGOUT_TYPE}% %player% %{LOGOUT_TIME}% %{LOGOUT_REASON}%" stop on join: if {s.%player%} is not set: set {s.%player%} to false if {ll.%player%} is set: teleport player to {ll.%player%}