Staff++
Search…
Chat module

Introduction

The chat module allows you to manage certain chat functionalities. Most of these are still the old Staff+ ones.

Configuration

1
# Requires "permissions.chat" permission.
2
chat-module:
3
# Whether or not the plugin will use "/chat" features.
4
enabled: true
5
6
# The amount of lines that will be sent when "/chat clear" is executed.
7
lines: 100
8
9
# The cooldown, in seconds, for chatting when the chat is slowed.
10
# Bypass permission is "chat-slow".
11
slow: 5
12
13
# Whenever one of these words/phrases is detected in a chat message,
14
# an alert will be triggered. These can either notify the staff members
15
# through the alerts-system of discord.
16
detection:
17
phrase-groups:
18
- phrases:
19
- admin
20
- mod
21
actions: []
22
23
# All word blacklist options.
24
# Leave any of the lists below blank to disable them!
25
blacklist-module:
26
# Whether or not the blacklist will be enabled.
27
enabled: false
28
29
# Whether or not messages that have censored words in them will be hoverable.
30
# This means you will be able to hover over a chat message to see an uncensored message if you have the "permissions.blacklist" permission.
31
# This may not work well with other chat plugins!
32
hoverable: false
33
34
# The character that will replace blocked word characters.
35
character: "*"
36
37
# Whether or not messages that have merged blocked words will be detected.
38
# So if you block the word "ass", it will also block "asshole" or "dickass".
39
# May cause issues with legal words like "bypass"! Fix is below.
40
merging: true
41
42
# All words that will be censored.
43
# Separate words with commas.
44
words: bad, words, here
45
46
# All characters that will be censored.
47
# These are merely characters that will be detected anywhere in messages.
48
characters: b, a, d
49
50
# All domain levels that will be censored.
51
# This can prevent users from sending links in chat.
52
# This will only check the end of words which have detected periods!
53
domains: com, net, org
54
55
# All strings that will be detected as periods in messages. Of course characters like "." and "," are detected by default.
56
# This will work in coordination with "domains".
57
# For example, it can detect "mineplex()com" as "mineplex.com".
58
periods: (), (dot),
59
60
# All words that will be allowed to be typed no matter what.
61
# This helps quite a bit if you have "merging" enabled.
62
# I recommend using http://www.morewords.com/contains/[word]/!
63
allowed: bypass, assembly, assassin, compass, assume, assault, asset, assort
Copied!

Phrase detection actions

You can execute actions whenever certain phrases are detected
1
detection:
2
phrase-groups:
3
- phrases:
4
- admin
5
- mod
6
actions: []
Copied!
Commands listed here should be in the Staff ++ command format

Placeholders

placeholder
description
%player%
The name of the player that triggered the phrase detection
%phrases%
The configured phrases that were detected

Targets

target value
description
player
The player that triggered the phrase detection

Executors

executor value
description
player
The player that triggered the phrase detection