Advertisement
Guest User

Untitled

a guest
Apr 16th, 2021
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #part with error
  2. every 5 seconds:
  3.   loop all players:
  4.     if loop-player does not have permission "staff.mwl.bypass":
  5.       if {wl::%server%} is true:
  6.         execute console command "/kick %player% &cKicked Whilst Connecting to &4ClickB8MC &6Reason: &cWhitelist is on!"
  7.     else:
  8.       stop
  9.  
  10.  
  11. #Full code
  12. command /megawhitelist [<text>]:
  13.   aliases: /mwl
  14.   permission: staff.mwl.command
  15.   permission message: &cStaff Only!
  16.   trigger:
  17.     if arg 1 is "on":
  18.       set {wl::%server%} to true
  19.       send "&cMWL is now &aON!"
  20.     if arg 1 is "off":
  21.       set {wl::%server%} to false
  22.       send "&cMWL is now &4OFF!"
  23.     if arg 1 is not set:
  24.       if {wl::%server%} is false:
  25.         set {wl::%server%} to true
  26.         send "&cMWL is now &aON!"
  27.       else:
  28.         set {wl::%server%} to false
  29.         send "&cMWL is now &4OFF!"
  30.      
  31.  
  32. on join:
  33.   if {wl::%server%} is true:
  34.     if player does not have permission "staff.mwl.bypass":
  35.       execute console command "/kick %player% &cKicked Whilst Connecting to &4ClickB8MC &6Reason: &cWhitelist is on!"
  36.   else:
  37.     stop
  38.  
  39.  
  40.  
  41. every 5 seconds:
  42.   loop all players:
  43.     if loop-player does not have permission "staff.mwl.bypass":
  44.       if {wl::%server%} is true:
  45.         execute console command "/kick %player% &cKicked Whilst Connecting to &4ClickB8MC &6Reason: &cWhitelist is on!"
  46.     else:
  47.       stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement