Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[&7OldCave&8]&7
- command /oldcave <text>:
- usage: /oldcave <on/off>
- permission: skript.op
- trigger:
- if arg-1 is "on" or "enable":
- set {oldcave} to true
- send "{@P} OldCave Enabled!"
- delete {isOldCave::*}
- else if arg-1 is "off" or "disable":
- delete {oldcave}
- send "{@P} OldCave Disabled!"
- loop all players:
- {isOldCave::%loop-player%} is set
- command "/undisplayer %loop-player%"
- delete {isOldCave::*}
- every 5 seconds:
- {oldcave} is true
- loop all players:
- if loop-player's y coordinate is more than 101:
- {isOldCave::%loop-player%} is not set
- command "/dplayer %loop-player% player OldCave"
- set {isOldCave::%loop-player%} to loop-player
- else if {isOldCave::%loop-player%} is set:
- command "/undisplayer %loop-player%"
- delete {isOldCave::%loop-player%}
- on join:
- {oldcave} is true
- if player's y coordinate is more than 101:
- {isOldCave::%player%} is set
- wait 1 second
- command "/dplayer %player% player OldCave"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement