SHARE
TWEET

Untitled

a guest Aug 19th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. variables:
  2.  {schat.%player%} = false
  3.  
  4. command /sc:
  5.  aliases: /staffchat
  6.  trigger:
  7.   if player has permission "staffchat.use":
  8.    if {schat.%player%} = true:
  9.     set {schat.%player%} to false
  10.     send "&e&lIsleRPG &8- &7Staff chat has been disabled!"
  11.    else if {schat.%player%} = false:
  12.     set {schat.%player%} to true
  13.     send "&e&lIsleRPG &8- &7Staff chat has been enabled!"
  14.   else:
  15.    send "&7[&e&lISLERPG&7] &fLacking the permission: &6staffchat.use"
  16.  
  17. on chat:
  18.  if {schat.%player%} = true:
  19.   loop all players:
  20.    loop-player has permission "staffchat.use"
  21.    send "&7[&e&lSTAFFCHAT&7] &b%player% &8- &f%message%" to loop-player
  22.   cancel event
  23.  
  24. on join:
  25.  delete {schat.%player%}
  26.  
  27. on quit:
  28.  delete {schat.%player%}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top