Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.56 KB | None | 0 0
  1. options:
  2. prefix: &8(&c&lV&3&lA&6&lG&5&lT&8)
  3.  
  4.  
  5. function warpc(p: player):
  6. if {_p} has permission "gruppe.admin", "gruppe.bvagt", "gruppe.avagt" or "gruppe.officer":
  7. execute console command "/warp CVagt %{_p}%"
  8. send "{@prefix} &aDu er nu i &c&lC&a!" to {_p}
  9. send {_p} title "&4&lHUSK!" with subtitle "&cat skifte gear!" for 5 seconds
  10.  
  11. function warpb(p: player):
  12. if {_p} has permission "gruppe.admin", "gruppe.bvagt", "gruppe.avagt" or "gruppe.officer":
  13. execute console command "/warp BVagt %{_p}%"
  14. send "{@prefix} &aDu er nu i &b&lB&a!" to {_p}
  15. send {_p} title "&4&lHUSK!" with subtitle "&cat skifte gear!" for 5 seconds
  16.  
  17. function warpa(p: player):
  18. if {_p} has permission "gruppe.admin", "gruppe.avagt" or "gruppe.officer":
  19. execute console command "/warp AVagt %{_p}%"
  20. send "{@prefix} &aDu er nu i &2&lA&a!" to {_p}
  21. send {_p} title "&4&lHUSK!" with subtitle "&cat skifte gear!" for 5 seconds
  22.  
  23.  
  24.  
  25.  
  26. on sign change:
  27. if line 1 of block is "WARP":
  28. if line 2 of block is "C":
  29. set line 1 of block to "&8[&4&lWARPS&8]"
  30. set line 2 of block to " "
  31. set line 3 of block to "&8Tryk for at"
  32. set line 4 of block to "&8gå til B eller A"
  33. if line 2 of block is "B":
  34. set line 1 of block to "&8[&4&lWARPS&8]"
  35. set line 2 of block to " "
  36. set line 3 of block to "&8Tryk for at"
  37. set line 4 of block to "&8gå til C eller A"
  38. if line 2 of block is "A":
  39. set line 1 of block to "&8[&4&lWARPS&8]"
  40. set line 2 of block to " "
  41. set line 3 of block to "&8Tryk for at"
  42. set line 4 of block to "&8gå til C eller B"
  43.  
  44.  
  45. on rightclick on sign:
  46. if line 1 of block is "&8[&4&lWARPS&8]":
  47. if player has permission "gruppe.admin" or "gruppe.officer":
  48. if line 4 of block is "&8gå til B eller A":
  49. open chest with 3 rows named "&9&lVAGT WARPS" to player
  50. wait 1 tick
  51. format slot 11 of player with stained glass pane:14 named "&4&lLåst!" with lore "&cDu er allerede i C!" to be unstealable
  52. 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)]
  53. 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)]
  54. if line 4 of block is "&8gå til C eller A":
  55. open chest with 3 rows named "&9&lVAGT WARPS" to player
  56. wait 1 tick
  57. 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)]
  58. format slot 13 of player with stained glass pane:3 named "&4&lLåst!" with lore "&cDu er allerede i B!" to be unstealable
  59. 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)]
  60. if line 4 of block is "&8gå til C eller B":
  61. open chest with 3 rows named "&9&lVAGT WARPS" to player
  62. wait 1 tick
  63. 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)]
  64. 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)]
  65. format slot 15 of player with stained glass pane:5 named "&4&lLåst!" with lore "&cDu er allerede i A!" to be unstealable
  66. else if player has permission "gruppe.vagt":
  67. if line 4 of block is "&8gå til B eller A":
  68. open chest with 3 rows named "&9&lVAGT WARPS" to player
  69. wait 1 tick
  70. format slot 11 of player with stained glass pane:14 named "&4&lLåst!" with lore "&cDu er allerede i C!" to be unstealable
  71. if player has permission "gruppe.bvagt" or "gruppe.avagt":
  72. 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)]
  73. else:
  74. 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
  75. if player has permission "gruppe.avagt":
  76. 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)]
  77. else:
  78. 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
  79. if line 4 of block is "&8gå til C eller A":
  80. open chest with 3 rows named "&9&lVAGT WARPS" to player
  81. wait 1 tick
  82. 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)]
  83. format slot 13 of player with stained glass pane:3 named "&4&lLåst!" with lore "&cDu er allerede i B!" to be unstealable
  84. if player has permission "gruppe.avagt":
  85. 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)]
  86. else:
  87. 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
  88. if line 4 of block is "&8gå til C eller B":
  89. open chest with 3 rows named "&9&lVAGT WARPS" to player
  90. wait 1 tick
  91. 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)]
  92. 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)]
  93. format slot 15 of player with stained glass pane:5 named "&4&lLåst!" with lore "&cDu er allerede i A!" to be unstealable
  94. else:
  95. message "{@prefix} &cDu er ikke vagt!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement