options: Version: 0.4 Prefix: &f[&4&lTwoja&f&lNazwa&8.PL&f] #&l uzywamy po kolorze # # Typowo serwerowe # on server list ping: set max player count to (size of all players + 1) on join: send player title "{@Prefix}" with subtitle "&1&lWitamy na serwerze!" for 3 seconds # # Pierwsze wejscie # on first join: set {pSpawn::%player%} to true set {gCzas::%player%} to true set {sCzas::%player%} to true set {login::%player%} to false set {premium::%player%} to false set {setLogout::%player%} to false # # logowanie i rejestracja # on any movement: if {premium::%player%} is false: if {login::%player%} is false: cancel event if {premium::%player%} is true: stop on quit: wait 5 minute set {login::%player%} to false stop command /premium: trigger: set {_name} to text from "https://api.mojang.com/users/profiles/minecraft/%player%" if {_name} contain "%player%": send "{@Prefix} &7Jestes graczem premium, ustawiono autologowanie!" to the player set {premium::%player%} to true else: send "{@Prefix} &cNie jestes graczem premium!" to the player every 2 seconds: loop all players: if {premium::%loop-player%} is false: if {login::%loop-player%} is false: if {haslo::%loop-player%} is not set: set action bar of loop-player to "&e&lZarejestruj sie uzywajac komendy &6/zarejestruj" if {haslo::%loop-player%} is set: set action bar of loop-player to "&e&lZaloguj sie uzywajac komendy &6/zaloguj" if {premium::%loop-player%} is true: if {login::%loop-player%} is false: set action bar of loop-player to "&2&lZalogowano automatycznie!" set {login::%loop-player%} to true command /register [] []: aliases: reg, zarejestruj trigger: if {haslo::%player%} is not set: if arg 1 is not set: send "{@Prefix} &cPoprawne Uzycie: /register " if arg 1 is set: if arg 2 is not set: send "{@Prefix} &cPoprawne Uzycie: /register " if arg 2 is set: if arg 2 is not arg 1: send " " to player send "{@Prefix} &cHasla nie sa takie same!" send " " to player if arg 2 = arg 1: set {haslo::%player%} to arg 1 send " " to player send "{@Prefix} &7Udalo ci sie zajerestrowac!" send " " to player set {login::%player%} to true set {premium::%player%} to false if {haslo::%player%} is set: stop command /zaloguj []: aliases: login, trigger: if arg 1 is not set: send "{@Prefix} &cPoprawne Uzycie: /login " if arg 1 is set: if arg 1 is not {haslo::%player%}: send " " to player send "{@Prefix} &cHaslo nie jest poprawne!" send " " to player if arg 1 = {haslo::%player%}: if {login::%player%} is true: stop if {login::%player%} is false: send " " to player send "{@Prefix} &7Udalo ci sie zalogowac!" send " " to player set {login::%player%} to true # # AntyLogout # on damage: if attacker is player: if victim is player: if {antylogout::%victim%} is not set: send " " to victim send "{@Prefix} &cJestes podczas walki" to victim send " " to victim set {antylogout::%victim%} to 15 set {setLogout::%victim%} to true if {antylogout::%attacker%} is not set: send " " to attacker send "{@Prefix} &cJestes podczas walki" to attacker send " " to attacker set {antylogout::%attacker%} to 15 set {setLogout::%attacker%} to true every 1 seconds: loop all players: if {antylogout::%loop-player%} is set: if {setLogout::%loop-player%} is true: if {antylogout::%loop-player%} is higher than 0: remove 1 from {antylogout::%loop-player%} set action bar of loop-player to "&c&lAntyLogout &4&l%{antylogout::%loop-player%}%sek" if {AntyLogout::%loop-player%} <= 0: set {setLogout::%loop-player%} to false clear {antylogout::%loop-player%} send "&aSkonczyles walczyc." to loop-player set action bar of loop-player to "&2&lAntyLogout" on quit: if {setLogout::%player%} is true: if {antylogout::%player%} is set: if {antylogout::%player%} is higher than 0: kill player broadcast "{@Prefix} &7Gracz &c%player% &7Wylogowal sie podczas pvp!" if {setLogout::%player%} is false: stop # # Spawn # command /setspawn []: permission: pe.setspawn permission message: {@Prefix} &cNie masz dostepu do tej komendy! trigger: if arg 1 is set: send "{@Prefix} &cPoprawne Uzycie: /setspawn." stop if arg 1 is not set: set {spawn} to location of player send " " to player send "{@Prefix} &7Ustawiles spawn na kordynatach: &c%player's location%" send " " to player stop command /spawn []: trigger: if arg 1 is set: send "{@Prefix} &cPoprawne Uzycie: /spawn." stop if arg 1 is not set: if {pSpawn::%player%} is true: apply nausea of tier 2 to player for 8 seconds send "{@Prefix} &7Teleportacja nastapi za... &c5" wait 1 seconds send "{@Prefix} &7Teleportacja nastapi za... &c4" wait 1 seconds send "{@Prefix} &7Teleportacja nastapi za... &c3" wait 1 seconds send "{@Prefix} &7Teleportacja nastapi za... &c2" wait 1 seconds send "{@Prefix} &7Teleportacja nastapi za... &c1" wait 1 seconds teleport player to {spawn} send " " send "{@Prefix} &7Teleportowales sie na spawn! Znowu bedziesz mogl za 20 minut!" send " " set {pSpawn::%player%} to false wait 20 minutes send " " send "{@Prefix} &7Mozesz znowu sie teleportowac na spawn!" send " " set {pSpawn::%player%} to true if {pSpawn::%player%} is false: send " " send "{@Prefix} &cJeszcze nie mozesz sie teleportowac na spawn!" send " " wait 20 minutes send " " send "{@Prefix} &7Mozesz znowu sie teleportowac na spawn!" send " " # # Kity # command /kit []: permission: pe.kit permission message: {@Prefix} &cNie masz dostepu do tej komendy! aliases: zestaw, k, trigger: if arg 1 is not set: open chest with 3 rows named "&2Kity" to player wait 3 ticks set {_i} to 0 loop 10 times: format slot {_i} of player with gray glass pane named " " to be unstealable add 1 to {_i} set {_i} to 17 loop 10 times: format slot {_i} of player with gray glass pane named " " to be unstealable add 1 to {_i} format slot 10 of player with name tag of unbreaking 1 named "&bPrzepustka Podstawowa" with lore "&5&oKliknij, aby odebrac przepustke.||&6Odnawia sie co 10 minut." to close then run "kit2 g %player%" format slot 11 of player with name tag of unbreaking 1 named "&bPrzepustka Srebrna" with lore "&5&oKliknij, aby odebrac przepustke.||&6Odnawia sie co 20 minut." to close then run "kit2 silver %player%" format slot 12 of player with name tag of unbreaking 1 named "&bPrzepustka Szybka Klepa" with lore "&5&oKliknij, aby odebrac przepustke.||&6Odnawia sie co 60 minut." to close then run "kit2 klepa %player%" else: send "{@Prefix} &cPoprawne Uzycie: /kit." stop command /kit2 [] []: executable by: console trigger: if arg 1 is "g": if {gCzas::%player-arg%} is true: give 1 of name tag of unbreaking 1 named "&8Przepustka Podstawowa" with lore "&9LPM, aby odebrac.||&9PPM, aby zobaczyc zawartosc." to player-arg set {gCzas::%player-arg%} to false wait 10 minute send " " to player-arg send "{@Prefix} &7Przepustka Podstawowa zostala odnowiona!" to player-arg send " " to player-arg set {gCzas::%player-arg%} to true else: send " " to player-arg send "{@Prefix} &cAby otrzymac przepustke musisz jeszcze poczekac." to player-arg send " " to player-arg wait 10 minute send " " to player-arg send "{@Prefix} &7Przepustka Podstawowa zostala odnowiona!" to player-arg send " " to player-arg set {gCzas::%player-arg%} to true if arg 1 is "silver": if player doesn't have permission "pe.silverKit": send " " send "{@Prefix} &cNie masz dostepu do tego kitu!" send " " else: if {sCzas::%player-arg%} is true: give 1 of name tag of unbreaking 1 named "&7Przepustka Srebrna" with lore "&9LPM, aby odebrac.||&9PPM, aby zobaczyc zawartosc." to player-arg set {sCzas::%player-arg%} to false wait 20 minute send " " to player-arg send "{@Prefix} &7Przepustka Srebrna zostala odnowiona!" to player-arg send " " to player-arg set {sCzas::%player-arg%} to true stop else: send " " to player-arg send "{@Prefix} &cAby otrzymac przepustke musisz jeszcze poczekac." to player-arg send " " to player-arg wait 20 minute send " " to player-arg send "{@Prefix} &7Przepustka Srebrna zostala odnowiona!" to player-arg send " " to player-arg set {sCzas::%player-arg%} to true stop if arg 1 is "klepa": if player doesn't have permission "pe.klepaKit": send " " send "{@Prefix} &cNie masz dostepu do tego kitu!" send " " else: if {kCzas::%player-arg%} is true: give 1 of name tag of unbreaking 1 named "&cPrzepustka Szybka Klepa" with lore "&9LPM, aby odebrac.||&9PPM, aby zobaczyc zawartosc." to player-arg set {kCzas::%player-arg%} to false wait 60 minute send " " to player-arg send "{@Prefix} &7Przepustka Szybkiej Klepy zostala odnowiona!" to player-arg send " " to player-arg set {kCzas::%player-arg%} to true stop else: send " " to player-arg send "{@Prefix} &cAby otrzymac przepustke musisz jeszcze poczekac." to player-arg send " " to player-arg wait 60 minute send " " to player-arg send "{@Prefix} &7Przepustka Szybkiej Klepy zostala odnowiona!" to player-arg send " " to player-arg set {kCzas::%player-arg%} to true on rightclick with name tag: if name of player's tool is "&8Przepustka Podstawowa": open chest with 1 rows named "&8Zawartosc" to player wait 3 ticks format slot 0 of player with gray glass pane named " " to be unstealable format slot 1 of player with leather_helmet to be unstealable format slot 2 of player with leather_chestplate to be unstealable format slot 3 of player with leather_leggings to be unstealable format slot 4 of player with leather_boots to be unstealable format slot 5 of player with diamond pickaxe of efficiency 3 and unbreaking 2 to be unstealable format slot 6 of player with 16 oak log to be unstealable format slot 7 of player with ender chest to be unstealable format slot 8 of player with gray glass pane named " " to be unstealable if name of player's tool is "&7Przepustka Srebrna": open chest with 1 rows named "&8Zawartosc" to player wait 3 ticks format slot 0 of player with gray glass pane named " " to be unstealable format slot 1 of player with diamond helmet of protection 3 to be unstealable format slot 2 of player with diamond_chestplate of protection 3 to be unstealable format slot 3 of player with diamond_leggings of protection 3 to be unstealable format slot 4 of player with diamond_boots of protection 3 to be unstealable format slot 5 of player with diamond pickaxe of efficiency 5 and unbreaking 3 to be unstealable format slot 6 of player with 16 apple to be unstealable format slot 7 of player with 16 ender chest to be unstealable format slot 8 of player with gray glass pane named " " to be unstealable if name of player's tool is "&cPrzepustka Szybka Klepa": open chest with 1 rows named "&8Zawartosc" to player wait 3 ticks format slot 0 of player with gray glass pane named " " to be unstealable format slot 1 of player with diamond helmet of protection 4 and unbreaking 3 to be unstealable format slot 2 of player with diamond_chestplate of protection 4 and unbreaking 3 to be unstealable format slot 3 of player with diamond_leggings of protection 4 and unbreaking 3 to be unstealable format slot 4 of player with diamond_boots of protection 4 and unbreaking 3 to be unstealable format slot 5 of player with diamond sword of sharpness 5 and unbreaking 3 and fire aspect 2 to be unstealable format slot 6 of player with stick of Knockback 3 to be unstealable format slot 7 of player with 1 enchanted golden apple to be unstealable format slot 8 of player with gray glass pane named " " to be unstealable on leftclick with name tag: if name of player's tool is "&7Przepustka Srebrna": remove name tag named "&7Przepustka Srebrna" with lore "%lore of player's tool%" from player give 1 diamond helmet of protection 3 to player give 1 diamond_chestplate of protection 3 to player give 1 diamond_leggings of protection 3 to player give 1 diamond_boots of protection 3 to player give 1 diamond pickaxe of efficiency 5 and unbreaking 3 to player give 16 apple to player give 16 ender chest to player send " " to player send "{@Prefix} &7Otrzymales zawartosc Przepustki srebrnej!" send " " to player if name of player's tool is "&8Przepustka Podstawowa": remove name tag named "&8Przepustka Podstawowa" with lore "%lore of player's tool%" from player give 1 leather_helmet to player give 1 leather_chestplate to player give 1 leather_leggings to player give 1 leather_boots to player give 1 diamond pickaxe of efficiency 3 and unbreaking 2 to player give 16 oak log to player give 1 ender chest to player send " " to player send "{@Prefix} &7Otrzymales zawartosc Przepustki Podstawowej!" send " " to player if name of player's tool is "&cPrzepustka Szybka Klepa": remove name tag named "&cPrzepustka Szybka Klepa" with lore "%lore of player's tool%" from player give 1 diamond helmet of protection 4 and unbreaking 3 to player give 1 diamond_chestplate of protection 4 and unbreaking 3 to player give 1 diamond_leggings of protection 4 and unbreaking 3 to player give 1 diamond_boots of protection 4 and unbreaking 3 to player give 1 diamond sword of sharpness 5 and unbreaking 3 and fire aspect 2 to player give 1 stick of Knockback 3 to player give 1 enchanted golden apple to player