• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Staff chat (version 2, in working condition)

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.
#1
cmd create staffchat

cmd add staffchat if varset(%args%[1]) = 0 then goto 6

cmd add staffchat let %toggle% = lowercase(%args%[1])

cmd add staffchat if %toggle% = \"chat\" then goto 34

cmd add staffchat if %toggle% = \"on\" then goto 8

cmd add staffchat if %toggle% = \"off\" then goto 21

cmd add staffchat message %p% §2Usage: §a/sc on/off

cmd add staffchat exit

cmd add staffchat #enable

cmd add staffchat let %status% = playerstatus(%p%)

cmd add staffchat if %status%[\"op\"] = 0 then message %p% §cYou have no permission to use this command!

cmd add staffchat if %status%[\"op\"] = 0 then exit

cmd add staffchat load %staff%

cmd add staffchat if %p% in %staff% then goto 19

cmd add staffchat let %staff% = %p%

cmd add staffchat save %staff%

cmd add staffchat load %chattoggle%

cmd add staffchat let %chattoggle%[%p%] = 1

cmd add staffchat save %chattoggle%

cmd add staffchat message %p% §6[§3S§bN§6] §6[§3StaffChat§6] §sEnabled, please do /sc off to disable staffchat.

cmd add staffchat exit

cmd add staffchat #disable

cmd add staffchat let %status% = playerstatus(%p%)

cmd add staffchat if %status%[\"op\"] = 0 then message %p% §cYou have no permission to use this command!

cmd add staffchat if %status%[\"op\"] = 0 then exit

cmd add staffchat load %staff%

cmd add staffchat if %p% notin %staff% then goto 28

cmd add staffchat let %staff% = %staff% - %p%

cmd add staffchat save %staff%

cmd add staffchat load %chattoggle%

cmd add staffchat let %chattoggle%[%p%] = 0

cmd add staffchat save %chattoggle%

cmd add staffchat message %p% [StaffChat] disabled

cmd add staffchat exit

cmd add staffchat #chat

cmd add staffchat load %staff%

cmd add staffchat load %chattoggle%

cmd add staffchat if %chattoggle%[%p%] = 0 then exit

cmd add staffchat if %chattoggle%[%p%] = 1 then cancel

cmd add staffchat let %msg% = %args%[3]

cmd add staffchat message %staff% §6[§3S§bN§6] §6[§3StaffChat§6] §b%p% §6-=> §3%msg%

cmd trigger chat staffchat



Please comment to inform me of any errors occur. I have tested this like 10 times, and worked on it for almost a month, so please let me know if it needs fixing. :)
 
Last edited: