• 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.

StaffChat

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.

DataLion

Retired Staff
#1
Hey there,
I recently made a Staffchat command:


Code:
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% = \"enable\" then goto 8
cmd add staffchat if %toggle% = \"disable\" then goto 21
cmd add staffchat message %p% Usage: /staffchat enable/disable
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% You 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% [StaffChat] Enabled
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% You 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% [StaffChat][%p%]» %msg%
cmd trigger chat staffchat
Usage:
Just use: /staffchat enable to enable to chat.
When you enabled it you can just type in the chat everybody that enabled staffchat can now see your messages.

To disable staffchat: /staffchat disable.

I hope this helped you a lot.
 
#4
Hey there,
I recently made a Staffchat command:


Code:
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% = \"enable\" then goto 8
cmd add staffchat if %toggle% = \"disable\" then goto 21
cmd add staffchat message %p% Usage: /staffchat enable/disable
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% You 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% [StaffChat] Enabled
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% You 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% [StaffChat][%p%]» %msg%
cmd trigger chat staffchat
Usage:
Just use: /staffchat enable to enable to chat.
When you enabled it you can just type in the chat everybody that enabled staffchat can now see your messages.

To disable staffchat: /staffchat disable.

I hope this helped you a lot.
This is very handy! Well done!
 
#5
Hey there,
I recently made a Staffchat command:


Code:
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% = \"enable\" then goto 8
cmd add staffchat if %toggle% = \"disable\" then goto 21
cmd add staffchat message %p% Usage: /staffchat enable/disable
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% You 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% [StaffChat] Enabled
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% You 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% [StaffChat][%p%]» %msg%
cmd trigger chat staffchat
Usage:
Just use: /staffchat enable to enable to chat.
When you enabled it you can just type in the chat everybody that enabled staffchat can now see your messages.

To disable staffchat: /staffchat disable.

I hope this helped you a lot.

nice tutorial :)