Advertisement
BaneOfSmite

Untitled

Jan 19th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. options:
  2. P: &8[&42 &9Donkeys&8]&7
  3.  
  4. command /sm [<integer>]:
  5. permission: Skript.Op
  6. trigger:
  7. open virtual chest inventory with size 6 named "&5Scenario Manager" to player
  8. set {_temp} to 0
  9. loop {scenariomanager::*}:
  10. if {uhcgamemodes::%loop-value%} is true:
  11. format a gui slot {_temp} of player with a green stained glass pane named "&r%loop-value%" to run sender command "/%loop-value% disable":
  12. sender command "/sm"
  13. else:
  14. format a gui slot {_temp} of player with a red stained glass pane named "&r%loop-value%" to run sender command "/%loop-value% enable":
  15. sender command "/sm"
  16. add 1 to {_temp}
  17.  
  18. command /scenario [<text>] [<text>]:
  19. trigger:
  20. if arg-1 is "add":
  21. if arg-2 is set:
  22. set {scenariomanager::%arg-2%} to "%arg-2%"
  23. message "{@P} &c%arg-2%&7 has been added as a scenario!"
  24. else if arg-1 is "remove":
  25. if arg-2 is set:
  26. delete {scenariomanager::%arg-2%}
  27. message "{@P} &c%arg-2%&7 has been removed as a scenario!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement