Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &8(&c&lV&3&lA&6&lG&5&lT&8)
- function warpc(p: player):
- if {_p} has permission "gruppe.admin", "gruppe.bvagt", "gruppe.avagt" or "gruppe.officer":
- execute console command "/warp CVagt %{_p}%"
- send "{@prefix} &aDu er nu i &c&lC&a!" to {_p}
- send {_p} title "&4&lHUSK!" with subtitle "&cat skifte gear!" for 5 seconds
- function warpb(p: player):
- if {_p} has permission "gruppe.admin", "gruppe.bvagt", "gruppe.avagt" or "gruppe.officer":
- execute console command "/warp BVagt %{_p}%"
- send "{@prefix} &aDu er nu i &b&lB&a!" to {_p}
- send {_p} title "&4&lHUSK!" with subtitle "&cat skifte gear!" for 5 seconds
- function warpa(p: player):
- if {_p} has permission "gruppe.admin", "gruppe.avagt" or "gruppe.officer":
- execute console command "/warp AVagt %{_p}%"
- send "{@prefix} &aDu er nu i &2&lA&a!" to {_p}
- send {_p} title "&4&lHUSK!" with subtitle "&cat skifte gear!" for 5 seconds
- on sign change:
- if line 1 of block is "WARP":
- if line 2 of block is "C":
- set line 1 of block to "&8[&4&lWARPS&8]"
- set line 2 of block to " "
- set line 3 of block to "&8Tryk for at"
- set line 4 of block to "&8gå til B eller A"
- if line 2 of block is "B":
- set line 1 of block to "&8[&4&lWARPS&8]"
- set line 2 of block to " "
- set line 3 of block to "&8Tryk for at"
- set line 4 of block to "&8gå til C eller A"
- if line 2 of block is "A":
- set line 1 of block to "&8[&4&lWARPS&8]"
- set line 2 of block to " "
- set line 3 of block to "&8Tryk for at"
- set line 4 of block to "&8gå til C eller B"
- on rightclick on sign:
- if line 1 of block is "&8[&4&lWARPS&8]":
- if player has permission "gruppe.admin" or "gruppe.officer":
- if line 4 of block is "&8gå til B eller A":
- open chest with 3 rows named "&9&lVAGT WARPS" to player
- wait 1 tick
- format slot 11 of player with stained glass pane:14 named "&4&lLåst!" with lore "&cDu er allerede i C!" to be unstealable
- format slot 13 of player with stained glass pane:3 named "&7Gå til &b&lB&7 vagt stue!" with lore "&2ADGANG!" to close then run [warpb(player)]
- format slot 15 of player with stained glass pane:5 named "&7Gå til &a&lA&7 vagt stue!" with lore "&2ADGANG!" to close then run [warpa(player)]
- if line 4 of block is "&8gå til C eller A":
- open chest with 3 rows named "&9&lVAGT WARPS" to player
- wait 1 tick
- format slot 11 of player with stained glass pane:14 named "&7Gå til &c&lC&7!" with lore "&2ADGANG!" to close then run [warpc(player)]
- format slot 13 of player with stained glass pane:3 named "&4&lLåst!" with lore "&cDu er allerede i B!" to be unstealable
- format slot 15 of player with stained glass pane:5 named "&7Gå til &a&lA&7!" with lore "&2ADGANG!" to close then run [warpa(player)]
- if line 4 of block is "&8gå til C eller B":
- open chest with 3 rows named "&9&lVAGT WARPS" to player
- wait 1 tick
- format slot 11 of player with stained glass pane:14 named "&7Gå til &c&lC&7!" with lore "&2ADGANG!" to close then run [warpc(player)]
- format slot 13 of player with stained glass pane:3 named "&7Gå til &b&lB&7!" with lore "&2ADGANG!" to close then run [warpb(player)]
- format slot 15 of player with stained glass pane:5 named "&4&lLåst!" with lore "&cDu er allerede i A!" to be unstealable
- else if player has permission "gruppe.vagt":
- if line 4 of block is "&8gå til B eller A":
- open chest with 3 rows named "&9&lVAGT WARPS" to player
- wait 1 tick
- format slot 11 of player with stained glass pane:14 named "&4&lLåst!" with lore "&cDu er allerede i C!" to be unstealable
- if player has permission "gruppe.bvagt" or "gruppe.avagt":
- format slot 13 of player with stained glass pane:3 named "&7Gå til &b&lB&7!" with lore "&2ADGANG!" to close then run [warpb(player)]
- else:
- format slot 13 of player with stained glass pane:3 named "&4&lLåst!" with lore "&4INGEN ADGANG||&c- Ikke opnået BVagt endu!" to be unstealable
- if player has permission "gruppe.avagt":
- format slot 15 of player with stained glass pane:5 named "&7Gå til &a&lA&7!" with lore "&2ADGANG!" to close then run [warpa(player)]
- else:
- format slot 15 of player with stained glass pane:5 named "&4&lLåst!" with lore "&4INGEN ADGANG||&c- Ikke opnået AVagt endu!" to be unstealable
- if line 4 of block is "&8gå til C eller A":
- open chest with 3 rows named "&9&lVAGT WARPS" to player
- wait 1 tick
- format slot 11 of player with stained glass pane:14 named "&7Gå til &c&lC&7!" with lore "&2ADGANG!" to close then run [warpc(player)]
- format slot 13 of player with stained glass pane:3 named "&4&lLåst!" with lore "&cDu er allerede i B!" to be unstealable
- if player has permission "gruppe.avagt":
- format slot 15 of player with stained glass pane:5 named "&7Gå til &a&lA&7!" with lore "&2ADGANG!" to close then run [warpa(player)]
- else:
- format slot 15 of player with stained glass pane:5 named "&4&lLåst!" with lore "&4INGEN ADGANG||&c- Ikke opnået AVagt endu!" to be unstealable
- if line 4 of block is "&8gå til C eller B":
- open chest with 3 rows named "&9&lVAGT WARPS" to player
- wait 1 tick
- format slot 11 of player with stained glass pane:14 named "&7Gå til &c&lC&7!" with lore "&2ADGANG!" to close then run [warpc(player)]
- format slot 13 of player with stained glass pane:3 named "&7Gå til &b&lB&7!" with lore "&2ADGANG!" to close then run [warpb(player)]
- format slot 15 of player with stained glass pane:5 named "&4&lLåst!" with lore "&cDu er allerede i A!" to be unstealable
- else:
- message "{@prefix} &cDu er ikke vagt!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement