Jump to content

Simple Staff Chat


hyhyiojiohnj

Recommended Posts

options:
  scprefix: &bStaffchat &0->
  scuseprefix: *
  permission: staffchat
  
on chat:
  if first character of message is "{@scuseprefix}":
    if player has permission "{@permission}":
      set {_scmessage} to message
      replace all "{@scuseprefix}" with "" in {_scmessage}
      cancel event
      loop all players:
        if loop-player has permission "{@permission}":
          send "{@scprefix} &a%player% &0- &e%{_scmessage}%" to loop-player

simple staff chat, currently set up using "*". ex. "*hello staff", customizable

Link to comment
Share on other sites

51 minutes ago, hyhyiojiohnj said:
options:
  scprefix: &bStaffchat &0->
  scuseprefix: *
  permission: staffchat
  
on chat:
  if first character of message is "{@scuseprefix}":
    if player has permission "{@permission}":
      set {_scmessage} to message
      replace all "{@scuseprefix}" with "" in {_scmessage}
      cancel event
      loop all players:
        if loop-player has permission "{@permission}":
          send "{@scprefix} &a%player% &0- &e%{_scmessage}%" to loop-player

simple staff chat, currently set up using "*". ex. "*hello staff", customizable

You should also add the /staffchat toggle option to toggle it on and off so they don't have to use the prefix *

  • Like 1

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...