Jump to content

Chat filter not working


Nd_

Recommended Posts

Code:

on chat:
      if message contains {bannedwords::*}:
            message "&4Your message has been blocked by the filter"
            cancel event
command /cfadd <text>:
      permission: chatfilter.add
      description: Add a word to the chat filter
      executable by: players
      trigger:
            if argument contains {bannedwords::*}:
                  message "%argument% is already a banned word"
            else:
                  add argument to {bannedwords::*}
                  message "&4You have added %argument% to the Chat Filter"
command /cfremove <text>:
      permission: chatfilter.remove
      description: Remove a word to the chat filter
      executable by: players
      trigger:
            if argument contains {bannedwords::*}:
                  remove argument from {bannedwords::*}
                  message "&4You have removed %argument% from the Chat Filter"
            else:
                  message "%argument% isn't a banned word"
command /cflist:
      permission: chatfilter.list
      description: Lists the Banned Words
      executable by: players
      trigger:
            message "%{bannedwords::*}%"

There are no error messages, but the if argument contains {bannedwords::*} and the if message contains {bannedwords::*} think I mean if they type {bannedwords::*}, not if they type something in the list.

Link to comment
Share on other sites

Works completely fine, I just tested it my self.

Start your Minecraft server today for as low as £0.50/weekly for up to 4 GB of RAM! (£3.50 Monthly) and be equipped for all situations with our high-performance gear keeping your servers running 24/7

Why choose Us?
• Guaranteed 99.9% Uptime
• NVMe RAID Fast Storage
• 24/7 Hosting
• Instant Setup
• 50% Discount. Use Code: 50OFF (Ends on November 11th)

We want to ensure our customers are happy with the service they received and support. We aim to provide low-costs those who cant afford a minecraft server. No extra costs, no setup fees! One-time payment and you are good to go with our instant setup feature we introduced to ensure your server is ready to go!

Planning to make a community or a project you want to work on? We got you covered! Our servers are optimized for performance and security, so you can have peace of mind and focus on your project. Our servers are also reliable and packed with features, so you can start playing right away.

We guarantee 99% uptime and 24/7 customer support, so you can always ask for help if you need it.

Links:
https://forums.valknet.org
https://billing.valknet.org
Invite: https://discord.gg/FqSRt4ZCAC

Link to comment
Share on other sites

you may have another script with "on chat:" which it broadcasts chat.

Also isn't your forum name post to be your minecraft name ? Because Nd_ isn't your minecraft name its MasterND887

Edited by TacticalModz

Start your Minecraft server today for as low as £0.50/weekly for up to 4 GB of RAM! (£3.50 Monthly) and be equipped for all situations with our high-performance gear keeping your servers running 24/7

Why choose Us?
• Guaranteed 99.9% Uptime
• NVMe RAID Fast Storage
• 24/7 Hosting
• Instant Setup
• 50% Discount. Use Code: 50OFF (Ends on November 11th)

We want to ensure our customers are happy with the service they received and support. We aim to provide low-costs those who cant afford a minecraft server. No extra costs, no setup fees! One-time payment and you are good to go with our instant setup feature we introduced to ensure your server is ready to go!

Planning to make a community or a project you want to work on? We got you covered! Our servers are optimized for performance and security, so you can have peace of mind and focus on your project. Our servers are also reliable and packed with features, so you can start playing right away.

We guarantee 99% uptime and 24/7 customer support, so you can always ask for help if you need it.

Links:
https://forums.valknet.org
https://billing.valknet.org
Invite: https://discord.gg/FqSRt4ZCAC

Link to comment
Share on other sites

58 minutes ago, TacticalModz said:

you may have another script with "on chat:" which it broadcasts chat.

Also isn't your forum name post to be your minecraft name ? Because Nd_ isn't your minecraft name its MasterND887

IDK why I set it to that, maybe when Minehut releases the ability to change your forum name, I'll change it

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