Advertisement
zGhol

Untitled

Jan 11th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. on join:
  2. set {ToggleLigado.%player%} to true
  3. stop
  4.  
  5. command /chat global:
  6. trigger:
  7. if {ToggleLigado.%player%} is true:
  8. open chest with 3 row named "&6Toggle" to player
  9. format slot 13 of player with a Green Stained Glass Pane named "&a&lLigado" with lore "&aLigado" to run [make player execute command "/tdesligado"]
  10. stop
  11. else:
  12. if {ToggleDesligado.%player%} is true:
  13. open chest with 3 row named "&6Toggle" to player
  14. format slot 13 of player with a Red Stained Glass Pane named "&c&lDesligado" with lore "&cDesligado" to run [make player execute command "/tligado"]
  15. stop
  16.  
  17. command /tligado:
  18. trigger:
  19. if {ToggleDeligado.%player%} is true:
  20. format slot 13 of player with a Green Stained Glass Pane named "&a&lLigado" with lore "&aLigado" to close
  21. set {ToggleDesligado.%player%} to false
  22. set {ToggleLigado.%player%} to true
  23. open chest with 3 row named "&6Toggle" to player
  24. format slot 13 of player with a Green Stained Glass Pane named "&a&lLigado" with lore "&aLigado" to run [make player execute command "/tdesligado"]
  25. stop
  26.  
  27. command /tdesligado:
  28. trigger:
  29. if {ToggleLigado.%player%} is true:
  30. format slot 13 of player with a Red Stained Glass Pane named "&c&lDesligado" with lore "&cDesligado" to close
  31. set {ToggleLigado.%player%} to false
  32. set {ToggleDesligado.%player%} to true
  33. open chest with 3 row named "&6Toggle" to player
  34. format slot 13 of player with a Red Stained Glass Pane named "&c&lDesligado" with lore "&cDesligado" to run [make player execute command "/tligado"]
  35. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement