From 999afc8ade9f1fe5fa4052ddf9afa3d67840e42b Mon Sep 17 00:00:00 2001 From: Adrian Date: Thu, 11 May 2023 22:39:18 -0500 Subject: [PATCH] fix: Fixed blocked_command placeholders Removed placeholder. If this placeholder is required, MiniPlaceholders can be used with the Player expansion, which provides the placeholder . --- .../chatregulator/plugin/config/Messages.java | 18 +++++++++--------- .../plugin/impl/InfractionPlayerImpl.java | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/plugin/src/main/java/io/github/_4drian3d/chatregulator/plugin/config/Messages.java b/plugin/src/main/java/io/github/_4drian3d/chatregulator/plugin/config/Messages.java index fea2fe0..e716c69 100644 --- a/plugin/src/main/java/io/github/_4drian3d/chatregulator/plugin/config/Messages.java +++ b/plugin/src/main/java/io/github/_4drian3d/chatregulator/plugin/config/Messages.java @@ -104,7 +104,7 @@ public static class CommandBlacklist implements Warning, Alert, Reset{ private String warning = "Hello, it is not allowed to use blocked commands"; @Comment("Message to be sent to staff with chatregulator.notifications permission") - private String alert = "The player has executed blocked commands in server | String: "; + private String alert = "The player has executed blocked commands | String: "; @Comment("Statistics Reset Confirmation Message") private String reset = "The commands infraction count for was reset"; @@ -134,7 +134,7 @@ public static class Regex implements Warning, Alert, Reset{ private String warning = "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 = "The player has said forbidden words in server | String: "; + private String alert = "The player has said forbidden words | String: "; @Comment("Statistics Reset Confirmation Message") private String reset = "The infraction warning count for was reset"; @@ -164,7 +164,7 @@ public static class Flood implements Warning, Alert, Reset{ private String warning = "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 = "The player has make flood in server | String: "; + private String alert = "The player has make flood | String: "; @Comment("Statistics Reset Confirmation Message") private String reset = "The flood warning count for was reset"; @@ -194,7 +194,7 @@ public static class Spam implements Warning, Alert, Reset { private String warning = "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 = "The player was spamming the chat in server | String: "; + private String alert = "The player was spamming the chat | String: "; @Comment("Statistics Reset Confirmation Message") private String reset = "The spam warning count for was reset"; @@ -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 = "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 = "The player was spamming the chat in server | String: "; + @Comment("Message to be sent to staff with chatregulator.notifications permission") + private String alert = "The player writing too fast | String: "; @Comment("Statistics Reset Confirmation Message") private String reset = "The spam warning count for was reset"; @@ -254,7 +254,7 @@ public static class Unicode implements Warning, Alert, Reset{ private String warning = "Hello, it is not allowed to use this symbols"; @Comment("Message to be sent to staff with chatregulator.notifications permission") - private String alert = "The player was using unicode symbols in the chat of server | String: "; + private String alert = "The player was using unauthorized unicode symbols | String: "; @Comment("Statistics Reset Confirmation Message") private String reset = "The simbols sended count for was reset"; @@ -284,7 +284,7 @@ public static class Caps implements Warning, Alert, Reset { private String warning = "Hello, it is not allowed to use too many caps"; @Comment("Message to be sent to staff with chatregulator.notifications permission") - private String alert = "The player was using many caps in the chat of server | String: "; + private String alert = "The player was using many capital letters | String: "; @Comment("Statistics Reset Confirmation Message") private String reset = "The caps violation count for was reset"; @@ -314,7 +314,7 @@ public static class Syntax implements Warning, Alert, Reset{ private String warning = "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 = "The player was using commands with \"/command:subcommand\" syntax in the server | String: "; + private String alert = "The player was using commands with invalid syntax | String: "; @Comment("Statistics Reset Confirmation Message") private String reset = "The syntax violation count for was reset"; diff --git a/plugin/src/main/java/io/github/_4drian3d/chatregulator/plugin/impl/InfractionPlayerImpl.java b/plugin/src/main/java/io/github/_4drian3d/chatregulator/plugin/impl/InfractionPlayerImpl.java index 0a0dfdb..0cd1511 100644 --- a/plugin/src/main/java/io/github/_4drian3d/chatregulator/plugin/impl/InfractionPlayerImpl.java +++ b/plugin/src/main/java/io/github/_4drian3d/chatregulator/plugin/impl/InfractionPlayerImpl.java @@ -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)) );