Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {whitelist::*} does not contain player:
- set {testing::%player's uuid%} to true
- on chat:
- if {testing::%player's uuid%} is true:
- set {_m} to message
- cancel event
- if {_m} contains {password}:
- set {testing::%player's uuid%} to false
- else:
- send "&8(&c*&8) &8| &c5 more seconds remaining."
- wait 1 second
- if {testing::%player's uuid%} is false:
- stop
- send "&8(&c*&8) &8| &c4 more seconds remaining."
- wait 1 second
- if {testing::%player's uuid%} is false:
- stop
- send "&8(&c*&8) &8| &c3 more seconds remaining."
- wait 1 second
- if {testing::%player's uuid%} is false:
- stop
- send "&8(&c*&8) &8| &c2 more seconds remaining."
- wait 1 second
- if {testing::%player's uuid%} is false:
- stop
- send "&8(&c*&8) &8| &c1 more seconds remaining."
- wait 1 second
- if {testing::%player's uuid%} is false:
- stop
- kick player
- every second:
- loop all players:
- if {testing::%loop-player's uuid%}:
- teleport loop-player to {lockspawn}
- command /lock [<text>] [<text>]:
- permission: lock.staff
- trigger:
- if arg-1 is "password":
- if arg-2 is set:
- set {password} to arg-2
- send "&8(&c*&8) &8| &7Set server password to %{password}%" to player
- else:
- send "&8(&c*&8) &8| &cPlease input a password." to player
- if arg-1 is "whitelist":
- if arg-2 is set:
- set {_p} to arg-2 parsed as a offlineplayer
- if {_p} is online:
- if {whitelist::*} contains {_p}:
- remove {_p} from {whitelist::*}
- send "&8(&c*&8) &8| &7Removed %{_p}%&7 from the whitelist." to player
- else:
- send "&8(&c*&8) &8| &7Added %{_p}%&7 to the whitelist." to player
- add {_p} to {whitelist::*}
- if arg-1 is "spawn":
- if arg-2 is not set:
- set {lockspawn} to player's location
- send "&8(&c*&8) &8| &7Set locked spawn for non-whitelisted users to your location." to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement