Add your own checks
How to use the "Others" section from the settings to add your own checks

How does the section work?

1
# Example configuration of the listener for an example client/version/mod
2
3
#The name of the configuration section (you can use what you want, it is not important)
4
ExampleSectionName:
5
6
#The channel name sent by the client that HackedServer will intercept
7
Channel: "EXAMPLE CHANNEL"
8
9
#The name of the subsection (because you can detect differents clients/mods/versions on the same channel)
10
ExampleSubSectionName:
11
12
#It is a condition : if the message sent by the client contains this text, HackedServer will read the rest of this subsection
13
Contains: "I'm using ExampleClient"
14
15
#The client name that HackedServer will display in its messages
16
ClientName: "ExampleClient"
17
18
#Actions to do when a player join with this client/mod/version
19
Actions:
20
21
#Enabled Placeholders in Commands and AlertMessage : %p%, %version%, %message%
22
23
#Commands you want to be performed by the Console
24
ConsoleCommands:
25
- "kill %p%"
26
27
#Commands you want to be performed by the player (as an op)
28
OppedPlayerCommands: []
29
30
#Enable alerts for players who have permission hackedserver.alert
31
Alert: true
32
33
#Alert message to send if enabled
34
AlertMessage: "&c %p% &7sent the plugin message \"&c%message%&7\" using the version &c%version%"
Copied!

Example section: Rift

1
McBrandChannel:
2
Channels:
3
- "MC|Brand"
4
- "minecraft:brand"
5
6
Rift:
7
ClientName: "Rift"
8
Contains: "rift"
9
Actions:
10
ConsoleCommands: []
11
OppedPlayerCommands: []
12
Alert: true
13
AlertMessage: "&c %p% &7just logged in using \"&c%version%&7\" !"
Copied!
You can also read this little article on medium that explains my approach with examples
Last modified 2yr ago