Skip to content
Snippets Groups Projects
Select Git revision
  • c46974e74c11b0497b2ebc2080f7ad1bdd72d5a4
  • master default protected
2 results

simplechatfilter

TheJoeCoder's avatar
c46974e7
History
Name Last commit Last update
src/main
.gitignore
README.md
pom.xml

SimpleChatFilter

A simple chat filter for Bungeecord servers.

Permissions

  • simplechatfilter.bypass.<category> - Bypass the chat filter for the category.
  • simplechatfilter.bypass.* - Bypass the chat filter entirely.
  • simplechatfilter.staff - See staff message when a player breaches the chat filter.

Configuration

# The list of categories to be filtered.
# Place the categories in order of severity, highest first.
# Only the most severe category will be applied to a message.
categories:
  # A category name
  # Can be anything you want
  advertising-pfcloud:
    # Blocked phrases
    # These are case-insensitive.
    # If the message contains any of these, it will be blocked.
    blocked:
      - a friendly bot designed to join servers
      - If you are searching for a good server hosting provider
      - https://shop.pfcloud.io
    # The commands to run when a message is blocked. Use {username} for the offending player's username.
    commands:
      - ipban {username} Bot/Advertising -s
    # A message to send to the player when their message is blocked.
    message: '&cPlease do not advertise!'

# The message to send to staff when a player breaches the chat filter.
staff-message: '&a[ChatFilter] &c{username} &7 broke rule &c{category} &7on server &c{server}&7.'