Advertisement
Guest User

Untitled

a guest
Feb 18th, 2016
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. options:
  2. P: &8[&7OldCave&8]&7
  3.  
  4.  
  5. command /oldcave <text>:
  6. usage: /oldcave <on/off>
  7. permission: skript.op
  8. trigger:
  9. if arg-1 is "on" or "enable":
  10. set {oldcave} to true
  11. send "{@P} OldCave Enabled!"
  12. delete {isOldCave::*}
  13. else if arg-1 is "off" or "disable":
  14. delete {oldcave}
  15. send "{@P} OldCave Disabled!"
  16. loop all players:
  17. {isOldCave::%loop-player%} is set
  18. command "/undisplayer %loop-player%"
  19. delete {isOldCave::*}
  20.  
  21. every 5 seconds:
  22. {oldcave} is true
  23. loop all players:
  24. if loop-player's y coordinate is more than 101:
  25. {isOldCave::%loop-player%} is not set
  26. command "/dplayer %loop-player% player OldCave"
  27. set {isOldCave::%loop-player%} to loop-player
  28. else if {isOldCave::%loop-player%} is set:
  29. command "/undisplayer %loop-player%"
  30. delete {isOldCave::%loop-player%}
  31.  
  32. on join:
  33. {oldcave} is true
  34. if player's y coordinate is more than 101:
  35. {isOldCave::%player%} is set
  36. wait 1 second
  37. command "/dplayer %player% player OldCave"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement