From 1b7620bfc2f5b1d3ab1d3a661f8580dd79fe8b2e Mon Sep 17 00:00:00 2001 From: RayzsYT <51991564+RayzsYT@users.noreply.github.com> Date: Tue, 21 May 2024 16:51:23 +0200 Subject: [PATCH] Add Message --- .../pat/api/storage/config/messages/BlacklistSection.java | 3 ++- src/main/resources/files/proxy-config.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/rayzs/pat/api/storage/config/messages/BlacklistSection.java b/src/main/java/de/rayzs/pat/api/storage/config/messages/BlacklistSection.java index 524e6cf0..c0dc2ec9 100644 --- a/src/main/java/de/rayzs/pat/api/storage/config/messages/BlacklistSection.java +++ b/src/main/java/de/rayzs/pat/api/storage/config/messages/BlacklistSection.java @@ -6,7 +6,7 @@ import de.rayzs.pat.utils.configuration.helper.ConfigSectionHelper; public class BlacklistSection extends ConfigStorage { - public String CLEAR, CLEAR_CONFIRM, CLEAR_SERVER, CLEAR_SERVER_CONFIRM; + public String CLEAR, CLEAR_CONFIRM, CLEAR_SERVER, CLEAR_SERVER_CONFIRM, CLEAR_SERVER_NOT_FOUND; public String LIST_MESSAGE, LIST_SPLITTER, LIST_COMMAND, LIST_SERVER_MESSAGE, LIST_SERVER_SPLITTER, LIST_SERVER_COMMAND; public String ADD_SUCCESS, ADD_FAILED; @@ -38,6 +38,7 @@ public class BlacklistSection extends ConfigStorage { CLEAR_SERVER = new ConfigSectionHelper(this, "clear-server", "&aList has been cleared!").getOrSet(); CLEAR_SERVER_CONFIRM = new ConfigSectionHelper(this, "clear-confirmation-server", "&4Warning! &7This command will &cclear the entire list of this server&7! &7Repeat the &esame command &7to confirm this action.").getOrSet(); + CLEAR_SERVER_NOT_FOUND = new ConfigSectionHelper(this, "clear-server-not-found", "&cThe server %server% does not have any commands!").getOrSet(); LIST_SERVER_MESSAGE = new ConfigSectionHelper(this, "list.message-server", "&7Listed commands of %server% (&f%size%&7)&8: &f%commands%").getOrSet(); LIST_SERVER_SPLITTER = new ConfigSectionHelper(this, "list.splitter-server", "&7, ").getOrSet(); diff --git a/src/main/resources/files/proxy-config.yml b/src/main/resources/files/proxy-config.yml index 19813a85..82b3e0ee 100644 --- a/src/main/resources/files/proxy-config.yml +++ b/src/main/resources/files/proxy-config.yml @@ -146,6 +146,7 @@ stats: blacklist: clear: '&aList has been cleared!' clear-server: '&aList has been cleared!' + clear-server-not-found: '&cThe server %server% does not have any commands!' clear-confirmation: '&4Warning! &7This command will &cclear the entire list&7! &7Repeat the &esame command &7to confirm this action.' clear-confirmation-server: '&4Warning! &7This command will &cclear the entire list of this server&7! &7Repeat the &esame command &7to confirm this action.'