Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #----------------------------------
- #
- # KIT - MENU - Lavet af FestGaming
- #
- # @Copyright2017 FestGamingStudios
- #
- # Kits: Mazer, Pro, Special
- #
- #----------------------------------
- on first join:
- give player a nether star named "&8&l(&b&lKIT &7&l- &b&lMENU&8&l)" with lore " &8&oKlik her for at Åbne Kit&7-&8&oMenuen!"
- set {auto::kits::%player%} to false
- set {ak::%player%} to "&4&lNej"
- on respawn:
- if {auto::kits::%player%} is false:
- give player a nether star named "&8&l(&b&lKIT &7&l- &b&lMENU&8&l)" with lore " &8&oKlik her for at Åbne Kit&7-&8&oMenuen!"
- else:
- if player has permission "pvp":
- make player execute command "/kit pvp"
- if player has permission "mazer" and "pvp":
- make player execute command "/kit mazer"
- if player has permission "special" and "pvp":
- make player execute command "/kit special"
- stop
- on first join:
- if {kit:special:%player%} is not set:
- set {kit:special:%player%} to true
- on join:
- if {kit:special:%player%} is not set:
- set {kit:special:%player%} to true
- on click holding nether star:
- name of player's tool is "&8&l(&b&lKIT &7&l- &b&lMENU&8&l)":
- make player execute command "/kit"
- every minute:
- loop all players:
- if {kit:special:%loop-player%} is false:
- remove 1 from {minutter:kits:%loop-player%}
- if {minutter:kits:%loop-player%} is 0:
- set {kit:special:%loop-player%} to true
- command /kit [<text>] [<offline player>]:
- trigger:
- send "&8&l(&b&lKIT &7&l- &b&lMENU&8&l) &c&lLoader....." to player
- wait 1 second
- if arg 1 is not set:
- if arg 2 is not set:
- open chest with 3 rows named "&b&lKIT &7&l- &b&lMENU&8&l" to player
- format slot 10 of player with leather helmet named "&b&lKIT &7&l- &b&lPvP" with lore "&7Tryk her for at modtage dette kit. || &8&oDette kit kan alle tage!" to close then run [make player execute command "/kit pvp"]
- format slot 16 of player with iron helmet named "&6&lKIT &7&l- &6&lMazer" with lore "&7Tryk her for at modtage dette kit. || &8&oDette kit kan kun &6&lMazer &8&otage!" to close then run [make player execute command "/kit mazer"]
- format slot 4 of player with diamond helmet named "&b&lKIT &7&l- &e&lSpecial" with lore "&7Tryk her for at modtage dette kit. || &8&oDette kit kan alle tage! ||&7Status: &6%{minutter:kits:%player%}% Minutter&7, endu" to close then run [make player execute command "/kit special"]
- format slot 22 of player with diamond helmet named "&b&lKIT &7&l- &e&lSpecial" with lore "&7Tryk her for at modtage dette kit. || &8&oDette kit kan alle tage! ||&7Status: &6%{minutter:kits:%player%}% Minutter&7, endu" to close then run [make player execute command "/kit special"]
- format slot 13 of player with nether star named "&b&lAUTO &7&l- &b&lKIT" with lore "&7Tryk her for at sætte denne funktion Til&8/&7Fra ||&7Status: %{ak::%player%}%|| &8&oDette kan alle bruge!" to close then run [make player execute command "/kit autokit"]
- stop
- if arg 1 is "pvp":
- if player's inventory contains 1 nether star:
- remove 1 nether star from player's inventory
- give player a diamond sword named "&b&lPvP"
- give player a bow named "&b&lPvP"
- give player a fishing rod named "&b&lPvP"
- give player 64 cooked porkchop named "&b&lPvP"
- give player 64 arrow named "&b&lPvP"
- give player a iron helmet named "&b&lPvP"
- give player a iron chestplate named "&b&lPvP"
- give player a iron leggings named "&b&lPvP"
- give player a iron boots named "&b&lPvP"
- send "&8&l(&b&lKIT &7&l- &b&lMENU&8&l) &7Du modtog nu kit &b&lPvP&7!" to player
- stop
- if arg 1 is "mazer":
- if player has permission "mazer":
- if player's inventory contains 1 nether star:
- remove 1 nether star from player's inventory
- give player a diamond sword of sharpness 1 named "&6&lMazer"
- give player a bow named "&6&lMazer"
- give player a fishing rod named "&6&lMazer"
- give player 64 cooked porkchop named "&6&lMazer"
- give player 64 arrow named "&6&lMazer"
- give player a diamond helmet of protection 1 named "&6&lMazer"
- give player a iron chestplate named "&6&lMazer"
- give player a diamond leggings of protection 1 named "&6&lMazer"
- give player a iron boots named "&6&lMazer"
- send "&8&l(&b&lKIT &7&l- &b&lMENU&8&l) &7Du modtog nu kit &6&lMazer&7!" to player
- stop
- else:
- send "&8&l(&b&lKIT &7&l- &b&lMENU&8&l) &cDu har ikke adgang til Kittet &6&lMazer&c!" to player
- stop
- if arg 1 is "special":
- if {kit:special:%player%} is true:
- if player's inventory contains 1 nether star:
- remove 1 nether star from player's inventory
- give player a diamond sword of sharpness 2 named "&e&lSpecial"
- give player a bow of power 2 named "&e&lSpecial"
- give player a fishing rod named "&e&lSpecial"
- give player 64 cooked porkchop named "&e&lSpecial"
- give player 64 arrow named "&e&lSpecial"
- give player a diamond helmet of protection 1 named "&e&lSpecial"
- give player a diamond chestplate named "&e&lSpecial"
- give player a diamond leggings of protection 1 named "&e&lSpecial"
- give player a diamond boots named "&e&lSpecial"
- set {kit:special:%player%} to false
- set {minutter:kits:%player%} to 30
- send "&8&l(&b&lKIT &7&l- &b&lMENU&8&l) &7Du modtog nu kit &e&lSpecial&7! &8(&cHUSK! &7Du skal være på i &630 &7Minutter fra nu af, før du kan tage dette kit igen!&8)" to player
- stop
- else:
- send "&8&l(&b&lKIT &7&l- &b&lMENU&8&l) &cDu har ikke adgang til Kittet &e&lSpecial &7lige nu! &8(&7Du skal stadig vente &6%{minutter:kits:%player%}% &7Minutter endu!&8)" to player
- stop
- if arg 1 is "autokit":
- if {ak::%player%} is "&4&lNej":
- set {auto::kits::%player%} to true
- set {ak::%player%} to "&2&lJa"
- send "&8&l(&4&lAUTO &7&l- &c&lKIT&8&l) &7Satte nu dit Auto&8-&7Kit til %{ak::%player%}%&7!"
- else:
- set {auto::kits::%player%} to false
- set {ak::%player%} to "&4&lNej"
- send "&8&l(&4&lAUTO &7&l- &c&lKIT&8&l) &7Satte nu dit Auto&8-&7Kit til %{ak::%player%}%&7!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement