Skip to content

Commit

Permalink
fix: Fixed blocked_command placeholders
Browse files Browse the repository at this point in the history
Removed <server> placeholder. If this placeholder is required, MiniPlaceholders can be used with the Player expansion, which provides the placeholder <player_server>.
  • Loading branch information
4drian3d committed May 12, 2023
1 parent 2ab3289 commit 999afc8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static class CommandBlacklist implements Warning, Alert, Reset{
private String warning = "<red>Hello, it is not allowed to use blocked commands";

@Comment("Message to be sent to staff with chatregulator.notifications permission")
private String alert = "<red>The player <aqua><player></aqua> <red>has executed blocked commands in <aqua><server></aqua> server | String: <string>";
private String alert = "<red>The player <aqua><player></aqua> <red>has executed blocked commands | String: <string>";

@Comment("Statistics Reset Confirmation Message")
private String reset = "<red>The commands infraction count for <player> was reset";
Expand Down Expand Up @@ -134,7 +134,7 @@ public static class Regex implements Warning, Alert, Reset{
private String warning = "<red>Hello, it is not allowed to use dirty words on this server";

@Comment("Message to be sent to staff with chatregulator.notifications permission")
private String alert = "<red>The player <aqua><player></aqua> <red>has said forbidden words in <aqua><server></aqua> server | String: <string>";
private String alert = "<red>The player <aqua><player></aqua> <red>has said forbidden words | String: <string>";

@Comment("Statistics Reset Confirmation Message")
private String reset = "<red>The infraction warning count for <player> was reset";
Expand Down Expand Up @@ -164,7 +164,7 @@ public static class Flood implements Warning, Alert, Reset{
private String warning = "<red>Hello, it is not allowed to make flood on this server";

@Comment("Message to be sent to staff with chatregulator.notifications permission")
private String alert = "<red>The player <aqua><player></aqua> <red>has make flood in <aqua><server></aqua> server | String: <string>";
private String alert = "<red>The player <aqua><player></aqua> <red>has make flood | String: <string>";

@Comment("Statistics Reset Confirmation Message")
private String reset = "<red>The flood warning count for <player> was reset";
Expand Down Expand Up @@ -194,7 +194,7 @@ public static class Spam implements Warning, Alert, Reset {
private String warning = "<red>Hello, it is not allowed to make spam on this server";

@Comment("Message to be sent to staff with chatregulator.notifications permission")
private String alert = "<red>The player <aqua><player></aqua> <red>was spamming the chat in <aqua><server></aqua> server | String: <string>";
private String alert = "<red>The player <aqua><player></aqua> <red>was spamming the chat | String: <string>";

@Comment("Statistics Reset Confirmation Message")
private String reset = "<red>The spam warning count for <player> was reset";
Expand Down Expand Up @@ -223,8 +223,8 @@ public static class Cooldown implements Warning, Alert, Reset {
In case you use the Title mode, put a ; to delimit the title and the subtitle""")
private String warning = "<red>Hello, it is not allowed to make spam on this server";

@Comment("Message to be sent to staff with chatregulator.notifications permission") // TODO: Change msg
private String alert = "<red>The player <aqua><player></aqua> <red>was spamming the chat in <aqua><server></aqua> server | String: <string>";
@Comment("Message to be sent to staff with chatregulator.notifications permission")
private String alert = "<red>The player <aqua><player></aqua> <red>writing too fast | String: <string>";

@Comment("Statistics Reset Confirmation Message")
private String reset = "<red>The spam warning count for <player> was reset";
Expand Down Expand Up @@ -254,7 +254,7 @@ public static class Unicode implements Warning, Alert, Reset{
private String warning = "<red>Hello, it is not allowed to use this symbols";

@Comment("Message to be sent to staff with chatregulator.notifications permission")
private String alert = "<red>The player <aqua><player></aqua> <red>was using unicode symbols in the chat of <aqua><server></aqua> server | String: <string>";
private String alert = "<red>The player <aqua><player></aqua> <red>was using unauthorized unicode symbols | String: <string>";

@Comment("Statistics Reset Confirmation Message")
private String reset = "<red>The simbols sended count for <player> was reset";
Expand Down Expand Up @@ -284,7 +284,7 @@ public static class Caps implements Warning, Alert, Reset {
private String warning = "<red>Hello, it is not allowed to use too many caps";

@Comment("Message to be sent to staff with chatregulator.notifications permission")
private String alert = "<red>The player <aqua><player></aqua> <red>was using many caps in the chat of <aqua><server></aqua> server | String: <string>";
private String alert = "<red>The player <aqua><player></aqua> <red>was using many capital letters | String: <string>";

@Comment("Statistics Reset Confirmation Message")
private String reset = "<red>The caps violation count for <player> was reset";
Expand Down Expand Up @@ -314,7 +314,7 @@ public static class Syntax implements Warning, Alert, Reset{
private String warning = "<red>Hello, it is not allowed to use this type of commands";

@Comment("Message to be sent to staff with chatregulator.notifications permission")
private String alert = "<red>The player <aqua><player></aqua> <red>was using commands with \"/command:subcommand\" syntax in the server <aqua><server></aqua> | String: <string>";
private String alert = "<red>The player <aqua><player></aqua> <red>was using commands with invalid syntax | String: <string>";

@Comment("Statistics Reset Confirmation Message")
private String reset = "<red>The syntax violation count for <player> was reset";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private void sendAlertMessage(final InfractionType type, final CheckResult resul
integer("regex", count.getCount(InfractionType.REGEX)),
integer("unicode", count.getCount(InfractionType.UNICODE)),
integer("caps", count.getCount(InfractionType.CAPS)),
integer("command", count.getCount(InfractionType.BLOCKED_COMMAND)),
integer("blocked_command", count.getCount(InfractionType.BLOCKED_COMMAND)),
integer("syntax", count.getCount(InfractionType.SYNTAX))
);

Expand Down

0 comments on commit 999afc8

Please sign in to comment.