Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /kit [<text>]:
- trigger:
- if arg-1 is not set:
- if player has permission "kits":
- open chest with 3 rows named " &d&lKit&c&l-&d&lMenu!" to player
- format slot 11 of player with book named "&eKit c!" with lore "&cDu skal være i C for at tage dette kit!" to close then run [make player execute command "kit C"]
- format slot 13 of player with book named "&aKit B!" with lore "&eDu skal være i B for at tage dette kit!" to close then run [make player execute command "kit B"]
- format slot 15 of player with book named "&cKit A!" with lore "&aDu skal være i A for at tage dette kit!" to close then run [make player execute command "kit A"]
- if arg-1 is "C":
- if player has permission "kit.c":
- set {_waited} to difference between {kit.C::%uuid of player%.brugt} and now
- if {_waited} is less than 24 hours:
- message "Du kan første tage kittet igen om %{_waited}%"
- stop
- set {kit.C::%uuid of player%.brugt} to now
- message "Du tog dit kit."
- give player 1 iron pickaxe
- give player 1 stone pickaxe
- give player 16 apple
- if arg-1 is "B":
- if player has permission "kit.b":
- set {_waited} to difference between {kit.C::%uuid of player%.brugt} and now
- if {_waited} is less than 24 hours:
- message "Du kan første tage kittet igen om %{_waited}%"
- stop
- set {kit.C::%uuid of player%.brugt} to now
- give player 1 diamond pickaxe
- give player 1 iron pickaxe
- give player 32 steak
- if arg-1 is "A":
- if player has permission "kit.a":
- set {_waited} to difference between {kit.C::%uuid of player%.brugt} and now
- if {_waited} is less than 24 hours:
- message "Du kan første tage kittet igen om %{_waited}%"
- stop
- set {kit.C::%uuid of player%.brugt} to now
- give player 1 diamond pickaxe
- give player 1 diamond pickaxe
- give player 64 steak
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement