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

Simple Staff Chat Command

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.

Null45

Coal Miner
#1
Code:
cmd create sc
cmd add sc load %staffs%
cmd add sc if varset(%staffs%) = %false% then let %staffs% = array(\" \")
cmd add sc if playergroup(%p%) in array(\"Guest\", \"VIP\", \"MVP\") then message %p% §cYou don't have the permission to use this command!
cmd add sc if playergroup(%p%) in array(\"Guest\", \"VIP\", \"MVP\") then exit
goto 10
let %msg% = join(%args%[1+], \" \")
ascon /cmd run scc %p% %msg%
exit
let %staffs%[] = %p%
save %staffs%
goto 7
exit
cmd create scc
cmd add scc load %staffs%
cmd add scc let %mes% = join(%args%[2+], \" \")
cmd add scc let %pl% = %args%[1]
cmd add scc message %staffs% §8[§6StaffChat§8] §f%pl% §8> §f%mes%
cmd add scc exit
cmd unregister scc
I hope you like it😀
 

Null45

Coal Miner
#2
Code:
cmd create sc
cmd add sc load %staffs%
cmd add sc if varset(%staffs%) = %false% then let %staffs% = array(\" \")
cmd add sc if playergroup(%p%) in array(\"Guest\", \"VIP\", \"MVP\") then message %p% §cYou don't have the permission to use this command!
cmd add sc if playergroup(%p%) in array(\"Guest\", \"VIP\", \"MVP\") then exit
goto 10
let %msg% = join(%args%[1+], \" \")
ascon /cmd run scc %p% %msg%
exit
let %staffs%[] = %p%
save %staffs%
goto 7
exit
cmd create scc
cmd add scc load %staffs%
cmd add scc let %mes% = join(%args%[2+], \" \")
cmd add scc let %pl% = %args%[1]
cmd add scc message %staffs% §8[§6StaffChat§8] §f%pl% §8> §f%mes%
cmd add scc exit
cmd unregister scc
I hope you like it😀

cmd edit sc 5 goto 9
 

Null45

Coal Miner
#8
cmd create sc
cmd add sc load %staffs%
cmd add sc if varset(%staffs%) = %false% then let %staffs% = array(\" \")
cmd add sc if playergroup(%p%) in array(\"Guest\", \"VIP\", \"MVP\") then message %p% §cYou don't have the permission to use this command!
cmd add sc if playergroup(%p%) in array(\"Guest\", \"VIP\", \"MVP\") then exit
goto 9
let %msg% = join(%args%[1+], \" \")
ascon /cmd run scc %p% %msg%
exit
let %staffs%[] = %p%
save %staffs%
goto 6
exit
cmd create scc
cmd add scc load %staffs%
cmd add scc let %mes% = join(%args%[2+], \" \")
cmd add scc let %pl% = %args%[1]
cmd add scc message %staffs% §8[§6StaffChat§8] §f%pl% §8> §f%mes%
cmd add scc exit
cmd unregister scc

cmd create sc
cmd add sc load %staffs%
cmd add sc if varset(%staffs%) = %false% then let %staffs% = array(\" \")
cmd add sc if playergroup(%p%) in array(\"Guest\", \"VIP\", \"MVP\") then message %p% §cYou don't have the permission to use this command!
cmd add sc if playergroup(%p%) in array(\"Guest\", \"VIP\", \"MVP\") then exit
cmd add scgoto 9
cmd add sclet %msg% = join(%args%[1+], \" \")
cmd add sc ascon /cmd run scc %p% %msg%
cmd add sc exit
cmd add sc if %p% in %staffs% then goto 6
cmd add sc let %staffs%[] = %p%
cmd add sc save %staffs%
cmd add sc goto 6
cmd add sc exit
cmd create scc
cmd add scc load %staffs%
cmd add scc let %mes% = join(%args%[2+], \" \")
cmd add scc let %pl% = %args%[1]
cmd add scc message %staffs% §8[§6StaffChat§8] §f%pl% §8> §f%mes%
cmd add scc exit
cmd unregister scc
 
Last edited by a moderator:

DrTim

Tree Puncher
#9
Hello @Null45,

I love the command, but I am experiencing some problems using your updated one. It seems to have a 3 message spam going on. I typed out the update to prevent it, but it is just having spam still.

Please do help me fix this issue.

Thank you!
 
#10
Hello @Null45,

I love the command, but I am experiencing some problems using your updated one. It seems to have a 3 message spam going on. I typed out the update to prevent it, but it is just having spam still.

Please do help me fix this issue.

Thank you!
You can fix it by resetting the variable %staffs%
cmd create reset Resets the Staff Variable | /reset
cmd add reset load %staffs%
cmd add reset let %staffs% = (put two spaces after the "=" sign)
cmd add reset save %staffs%
cmd add reset message %p% §aThe reset was successful