Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # On Region Enter and Exit messages
- on region enter:
- set {_region} to "%region at player%"
- if {_region} contains "s5-spawn" or "s5-claim-tutback" or "s5-claim-tutback2" or "s5-claim-tutorial" or "s5-parkour-snowglobe" or "s5-spawn-elevator" or "s5-spawn-gateexit" or "s5-spawn-gatewarning" or "s5-spawn-vote" or "s5-spawn-wildportal" or "spawn":
- stop
- if {regionmessages.enabled.%player%} is not set:
- chance of 10%:
- message "&8&oTo enable the Enter and Exit messages, type &7&o/regionmessages" to player
- stop
- set {_waited} to difference between {regionenter.cooldown.%player%.lastused} and now
- if {_waited} is less than 60 seconds:
- stop
- set {regionenter.cooldown.%player%.lastused} to now
- wait 1 tick
- set {_rg} to "%region at player%"
- replace all " in world %player's world%" in {_rg} with ""
- # message "&2&m>&7 You have entered &f%{_rg}% &2&m<"
- message "&2&m>&7 You have entered &f%owners of region%'s &7land &2&m<"
- # send player title "" with subtitle "&2&m>&7 You have entered &f%{_rg}% &2&m<" for 2 seconds
- send player title "" with subtitle "&2&m>&7 You have entered &f%owners of region%'s &7land &2&m<" for 2 seconds
- chance of 25%:
- message "&8&oTo toggle the Enter and Exit messages, type &7&o/regionmessages" to player
- on region exit:
- set {_region} to "%region at player%"
- if {_region} contains "s5-claim-tutback" or "s5-claim-tutback2" or "s5-claim-tutorial" or "s5-parkour-snowglobe" or "s5-spawn" or "s5-spawn-elevator" or "s5-spawn-gateexit" or "s5-spawn-gatewarning" or "s5-spawn-vote" or "s5-spawn-wildportal" or "spawn":
- stop
- if {regionmessages.enabled.%player%} is not set:
- chance of 10%:
- message "&8&oTo enable the Enter and Exit messages, type &7&o/regionmessages" to player
- stop
- set {_waited} to difference between {regionexit.cooldown.%player%.lastused} and now
- if {_waited} is less than 60 seconds:
- stop
- set {regionexit.cooldown.%player%.lastused} to now
- set {_rg} to "%region at player%"
- replace all " in world %player's world%" in {_rg} with ""
- # message "&2&m>&7 You have exited &f%{_rg}% &2&m<"
- message "&2&m>&7 You have exited &f%owners of region%'s &7land &2&m<"
- # send player title "" with subtitle "&2&m>&7 You have exited &f%{_rg}% &2&m<" for 2 seconds
- send player title "" with subtitle "&2&m>&7 You have exited &f%owners of region%'s &7land &2&m<" for 2 seconds
- chance of 25%:
- message "&8&oTo toggle the Enter and Exit messages, type &7&o/regionmessages" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement