Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #part with error
- every 5 seconds:
- loop all players:
- if loop-player does not have permission "staff.mwl.bypass":
- if {wl::%server%} is true:
- execute console command "/kick %player% &cKicked Whilst Connecting to &4ClickB8MC &6Reason: &cWhitelist is on!"
- else:
- stop
- #Full code
- command /megawhitelist [<text>]:
- aliases: /mwl
- permission: staff.mwl.command
- permission message: &cStaff Only!
- trigger:
- if arg 1 is "on":
- set {wl::%server%} to true
- send "&cMWL is now &aON!"
- if arg 1 is "off":
- set {wl::%server%} to false
- send "&cMWL is now &4OFF!"
- if arg 1 is not set:
- if {wl::%server%} is false:
- set {wl::%server%} to true
- send "&cMWL is now &aON!"
- else:
- set {wl::%server%} to false
- send "&cMWL is now &4OFF!"
- on join:
- if {wl::%server%} is true:
- if player does not have permission "staff.mwl.bypass":
- execute console command "/kick %player% &cKicked Whilst Connecting to &4ClickB8MC &6Reason: &cWhitelist is on!"
- else:
- stop
- every 5 seconds:
- loop all players:
- if loop-player does not have permission "staff.mwl.bypass":
- if {wl::%server%} is true:
- execute console command "/kick %player% &cKicked Whilst Connecting to &4ClickB8MC &6Reason: &cWhitelist is on!"
- else:
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement