From fae145851049b4d68da4af080102c9d1beab0ebc Mon Sep 17 00:00:00 2001 From: RayzsYT <51991564+RayzsYT@users.noreply.github.com> Date: Mon, 20 May 2024 21:18:13 +0200 Subject: [PATCH] Change Variable --- src/main/java/de/rayzs/pat/api/storage/Storage.java | 2 +- .../pat/api/storage/config/messages/BlacklistSection.java | 4 ++-- .../pat/api/storage/config/messages/GroupSection.java | 4 ++-- src/main/resources/checklist | 5 +++-- src/main/resources/files/proxy-config.yml | 8 ++++---- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/main/java/de/rayzs/pat/api/storage/Storage.java b/src/main/java/de/rayzs/pat/api/storage/Storage.java index f9c6bc84..a4a82673 100644 --- a/src/main/java/de/rayzs/pat/api/storage/Storage.java +++ b/src/main/java/de/rayzs/pat/api/storage/Storage.java @@ -94,7 +94,7 @@ public class Storage { public static NotificationSection NOTIFICATION = new NotificationSection(); public static OnlyForProxySection NO_PROXY = new OnlyForProxySection(); public static ReloadSection RELOAD = new ReloadSection(); - public static StatsSection STATS_SECTION = new StatsSection(); + public static StatsSection STATS = new StatsSection(); public static void initialize() {} } 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 94f142d3..79aa120d 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 @@ -27,7 +27,7 @@ public class BlacklistSection extends ConfigStorage { LIST_MESSAGE = new ConfigSectionHelper(this, "list.message", "&7Listed commands (&f%size%&7)&8: &f%commands%").getOrSet(); LIST_SPLITTER = new ConfigSectionHelper(this, "list.splitter", "&7, ").getOrSet(); - LIST_COMMAND = new ConfigSectionHelper(this, "list.command", "&f").getOrSet(); + LIST_COMMAND = new ConfigSectionHelper(this, "list.command", "&f%command%").getOrSet(); ADD_SUCCESS = new ConfigSectionHelper(this, "add.success", "&aSuccessfully added %command% into the list!").getOrSet(); ADD_FAILED = new ConfigSectionHelper(this, "add.failed", "&c%command% is already in the list!").getOrSet(); @@ -41,7 +41,7 @@ public class BlacklistSection extends ConfigStorage { 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(); - LIST_SERVER_COMMAND = new ConfigSectionHelper(this, "list.command-server", "&f").getOrSet(); + LIST_SERVER_COMMAND = new ConfigSectionHelper(this, "list.command-server", "&f%command%").getOrSet(); ADD_SERVER_SUCCESS = new ConfigSectionHelper(this, "add.success-server", "&aSuccessfully added %command% into the list of %server%!").getOrSet(); ADD_SERVER_FAILED = new ConfigSectionHelper(this, "add.failed-server", "&c%command% is already in the list of %server%!").getOrSet(); diff --git a/src/main/java/de/rayzs/pat/api/storage/config/messages/GroupSection.java b/src/main/java/de/rayzs/pat/api/storage/config/messages/GroupSection.java index 374729b3..a6260bf6 100644 --- a/src/main/java/de/rayzs/pat/api/storage/config/messages/GroupSection.java +++ b/src/main/java/de/rayzs/pat/api/storage/config/messages/GroupSection.java @@ -61,11 +61,11 @@ public class GroupSection extends ConfigStorage { LIST_SERVER_MESSAGE = new ConfigSectionHelper(this, "list.message-server", "&7Listed commands of group %group% from %server% (&f%size%&7)&8: &f%commands%").getOrSet(); LIST_SERVER_SPLITTER = new ConfigSectionHelper(this, "list.splitter-server", "&7, ").getOrSet(); - LIST_SERVER_COMMAND = new ConfigSectionHelper(this, "list.command-server", "&f").getOrSet(); + LIST_SERVER_COMMAND = new ConfigSectionHelper(this, "list.command-server", "&f%group%").getOrSet(); LIST_GROUP_SERVER_MESSAGE = new ConfigSectionHelper(this, "list-groups.message-server", "&7All groups from %server% (&f%size%&7)&8: &f%groups%").getOrSet(); LIST_GROUP_SERVER_SPLITTER = new ConfigSectionHelper(this, "list-groups.splitter-server", "&7, ").getOrSet(); - LIST_GROUP_SERVER_GROUPS = new ConfigSectionHelper(this, "list-groups.command-server", "&f").getOrSet(); + LIST_GROUP_SERVER_GROUPS = new ConfigSectionHelper(this, "list-groups.command-server", "&f%group%").getOrSet(); ADD_SERVER_SUCCESS = new ConfigSectionHelper(this, "add.success-server", "&aSuccessfully added %command% into the list of group %group% for %server%!").getOrSet(); ADD_SERVER_FAILED = new ConfigSectionHelper(this, "add.failed-server", "&c%command% is already in the list of group %group% of %server%!").getOrSet(); diff --git a/src/main/resources/checklist b/src/main/resources/checklist index 4667c1b9..c87005f1 100644 --- a/src/main/resources/checklist +++ b/src/main/resources/checklist @@ -1,7 +1,8 @@ - Fix 1.8.8 Support -- New and better storage.yml overlay +- Fix 1.16.5 Support +- New storage.yml overlay - New feature "Custom-Protocol-Ping" -- New commands +- New commands (for proxy-servers only) - Per-Server commands & groups - Remove /pat for proxy - Fix gold (&6) color diff --git a/src/main/resources/files/proxy-config.yml b/src/main/resources/files/proxy-config.yml index 46acfb79..fe3dd0ca 100644 --- a/src/main/resources/files/proxy-config.yml +++ b/src/main/resources/files/proxy-config.yml @@ -192,18 +192,18 @@ group: list: message: '&7Listed commands of group %group% (&f%size%&7)&8: &f%commands%' splitter: '&7, ' - command: '&f' + command: '&f%command%' message-server: '&7Listed commands of group %group% from %server% (&f%size%&7)&8: &f%commands%' splitter-server: '&7, ' - command-server: '&f' + command-server: '&f%command%' list-groups: message: '&7All groups (&f%size%&7)&8: &f%groups%' splitter: '&7, ' - command: '&f' + command: '&f%group%' message-server: '&7All groups from %server% (&f%size%&7)&8: &f%groups%' splitter-server: '&7, ' - command-server: '&f' + command-server: '&f%group%' add: success: '&aSuccessfully added %command% into the list of group %group%!'