Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- czas.start.%player% = 0
- czas.vip.%player% = 0
- czas.svip.%player% = 0
- czas.yt.%player% = 0
- command /kits [<text>]:
- trigger:
- arg 1 is not set:
- execute player command "/kit"
- arg 1 is set:
- execute player command "/kit"
- command /kit [<text>]:
- trigger:
- arg 1 is not set:
- wait 3 ticks
- open chest with 1 rows named "&7Zestawy" to player
- format slot 1 of player with 1 of 268 named "&8» &aStart" to close then run [execute player command "/kit start"]
- format slot 3 of player with 1 of 272 named "&8» &aVip" to close then run [execute player command "/kit vip"]
- format slot 5 of player with 1 of 267 named "&8» &aSVip" to close then run [execute player command "/kit svip"]
- format slot 7 of player with 1 of 283 named "&8» &aYt" to close then run [execute player command "/kit yt"]
- arg 1 is "start":
- if player has permission "kit.start":
- if {czas.start.%player%} is "teraz":
- wait 3 ticks
- open chest with 1 rows named "&7Zestaw &e%arg 1%" to player
- set slot 0 of current inventory of player to chain helmet
- set slot 1 of current inventory of player to chain chestplate
- set slot 2 of current inventory of player to chain leggings
- set slot 3 of current inventory of player to chain boots
- set slot 4 of current inventory of player to iron sword of sharpness 2
- set slot 5 of current inventory of player to iron pickaxe of efficiency 3, unbreaking 3
- set slot 6 of current inventory of player to iron pickaxe of efficiency 3, unbreaking 3
- set slot 7 of current inventory of player to 64 steak of unbreaking 1
- set slot 8 of current inventory of player to 64 steak of unbreaking 1
- if player has permission "kit.admin":
- stop
- else:
- set {czas.start.%player%} to 1800
- send "&8» &7Odebrales zestaw &estart"
- loop 1800 times:
- wait 1 real seconds
- remove 1 from {czas.start.%player%}
- else:
- send "&8» &7Ten zestaw jest dostepny za &c%{czas.start.%player%}% &7sekund"
- else:
- send "&8» &7Nie masz uprawnien!"
- arg 1 is "vip":
- if player has permission "kit.vip":
- if {czas.vip.%player%} is "teraz":
- wait 3 ticks
- open chest with 1 rows named "&7Zestaw &e%arg 1%" to player
- set slot 0 of current inventory of player to diamond helmet of protection 3, unbreaking 2
- set slot 1 of current inventory of player to diamond chestplate of protection 3, unbreaking 2
- set slot 2 of current inventory of player to diamond leggings of protection 3, unbreaking 2
- set slot 3 of current inventory of player to diamond boots of protection 3, unbreaking 2
- set slot 4 of current inventory of player to diamond sword of sharpness 4, fire aspect 1
- set slot 5 of current inventory of player to diamond pickaxe of efficiency 4, unbreaking 2
- set slot 6 of current inventory of player to diamond axe of efficiency 4, unbreaking 2
- set slot 7 of current inventory of player to 10 enchanted golden apple
- set slot 8 of current inventory of player to 20 golden apple
- if player has permission "kit.admin":
- stop
- else:
- set {czas.vip.%player%} to 10800
- send "&8» &7Odebrales zestaw &evip"
- loop 10800 times:
- wait 1 real seconds
- remove 1 from {czas.vip.%player%}
- else:
- send "&8» &7Ten zestaw jest dostepny za &c%{czas.vip.%player%}% &7sekund"
- else:
- send "&8» &7Nie masz uprawnien!"
- arg 1 is "svip":
- if player has permission "kit.svip":
- if {czas.svip.%player%} is "teraz":
- wait 3 ticks
- open chest with 1 rows named "&7Zestaw &e%arg 1%" to player
- set slot 0 of current inventory of player to diamond helmet of protection 4, unbreaking 3
- set slot 1 of current inventory of player to diamond chestplate of protection 4, unbreaking 3
- set slot 2 of current inventory of player to diamond leggings of protection 4, unbreaking 3
- set slot 3 of current inventory of player to diamond boots of protection 4, unbreaking 3
- set slot 4 of current inventory of player to diamond sword of sharpness 5, fire aspect 2
- set slot 5 of current inventory of player to diamond pickaxe of efficiency 5, unbreaking 3
- set slot 6 of current inventory of player to diamond axe of efficiency 5, unbreaking 3
- set slot 7 of current inventory of player to 20 enchanted golden apple
- set slot 8 of current inventory of player to 40 golden apple
- if player has permission "kit.admin":
- stop
- else:
- set {czas.svip.%player%} to 10800
- send "&8» &7Odebrales zestaw &evip"
- loop 10800 times:
- wait 1 real seconds
- remove 1 from {czas.svip.%player%}
- else:
- send "&8» &7Ten zestaw jest dostepny za &c%{czas.svip.%player%}% &7sekund"
- else:
- send "&8» &7Nie masz uprawnien!"
- arg 1 is "yt":
- if player has permission "kit.yt":
- if {czas.yt.%player%} is "teraz":
- wait 3 ticks
- open chest with 1 rows named "&7Zestaw &e%arg 1%" to player
- set slot 0 of current inventory of player to diamond helmet of protection 4, unbreaking 3
- set slot 1 of current inventory of player to diamond chestplate of protection 4, unbreaking 3
- set slot 2 of current inventory of player to diamond leggings of protection 4, unbreaking 3
- set slot 3 of current inventory of player to diamond boots of protection 4, unbreaking 3
- set slot 4 of current inventory of player to diamond sword of sharpness 5, fire aspect 2
- set slot 5 of current inventory of player to diamond pickaxe of efficiency 5, unbreaking 3
- set slot 6 of current inventory of player to diamond axe of efficiency 5, unbreaking 3
- set slot 7 of current inventory of player to 20 enchanted golden apple
- set slot 8 of current inventory of player to 40 golden apple
- if player has permission "kit.admin":
- stop
- else:
- set {czas.yt.%player%} to 10800
- send "&8» &7Odebrales zestaw &eyt"
- loop 10800 times:
- wait 1 real seconds
- remove 1 from {czas.yt.%player%}
- else:
- send "&8» &7Ten zestaw jest dostepny za &c%{czas.yt.%player%}% &7sekund"
- else:
- send "&8» &7Nie masz uprawnien!"
- every 1 seconds:
- loop all players:
- if {czas.start.%loop-player%} is less than 2:
- set {czas.start.%loop-player%} to "teraz"
- if {czas.vip.%loop-player%} is less than 2:
- set {czas.vip.%loop-player%} to "teraz"
- if {czas.svip.%loop-player%} is less than 2:
- set {czas.svip.%loop-player%} to "teraz"
- if {czas.yt.%loop-player%} is less than 2:
- set {czas.yt.%loop-player%} to "teraz"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement