Jump to content

Quick ChatControl


RichieNy

Recommended Posts

Well, the plugin chat control is broken so here is this for you all to use!

 

options:
    p: &8[&c!&8]&7
    msg: {@p} &cYou are not allowed to use that command!
    version: 0.0.1

on chat:
    if player does not have permission "staff.chc":
        if {mutechat} is set:
            cancel event
            send "{@p} You can not speak while chat is muted!"

command /chc [<text>]:
    permission: staff.chc
    permission message: {@msg}
    trigger:
        if arg-1 is "help":
            send "&3ChatControl Skript"
            send "&7Made by RichieNy"
            send "&b/chc help &7→ Shows this help page!"
            send "&b/chc mute &7→ Mutes the chat!"
            send "&b/chc clear &7→ Clears the chat!"
        if arg-1 is "mute":
            if {mutechat} is set:
                delete {mutechat}
                broadcast "{@p} Chat has been unmuted by &b%player%&7!"
            else:
                set {mutechat} to true
                broadcast "{@p} Chat has been muted by &b%player%&7!"
        if arg-1 is "clear":
            loop 100 times:
                broadcast " "
            broadcast "{@p} Chat has been cleared by &b%player%&7!"

 

  • Like 2

RichieNy

════ ⋆★⋆ ════

Retired Minehut Moderator
Link to comment
Share on other sites

Not bad, I like the idea of keeping it to one command, never actually done that myself. 

  • Like 1

Junior Mod (01/04/2020) - Resigned 

 Discord » Koronotchi#0001 
Minecraft Username » Koronotchi 

image.png.17a385f298c8969f6b1cf03e27ee50d3.png

 

Link to comment
Share on other sites

  • 2 weeks later...

Cool script, you should add an option to prevent messages that include certain words from being sent (for example swear words). You can provide a default list and an option to edit it (/chc word add/remove/list)

Link to comment
Share on other sites

  • 1 year later...

Hello bubiuububbuibui,

Please make sure that you aren't responding to posts that haven't been responded to in over a month. You can start a new thread in case you need some help.  Sadly, I would have to lock this thread. Thanks for understanding.
 

Link to comment
Share on other sites

  • pAxiee locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...