From b269fc052cd8085d9464d7c40ca02658e5c960c9 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Sat, 1 Jul 2023 13:02:05 +0200 Subject: [PATCH] Update to v2.4.21 --- .../Minepacks/Bukkit/Command/CommandManager.java | 6 ++++-- pom.xml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Command/CommandManager.java b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Command/CommandManager.java index eba9205..6f955c4 100644 --- a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Command/CommandManager.java +++ b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Command/CommandManager.java @@ -12,7 +12,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * along with this program. If not, see . */ package at.pcgamingfreaks.Minepacks.Bukkit.Command; @@ -28,6 +28,7 @@ import at.pcgamingfreaks.Minepacks.Bukkit.API.WorldBlacklistMode; import at.pcgamingfreaks.Minepacks.Bukkit.Minepacks; import at.pcgamingfreaks.Reflection; + import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; @@ -52,7 +53,8 @@ public CommandManager(@NotNull Minepacks plugin) backpackCommand.setExecutor(this); backpackCommand.setTabCompleter(this); - helpFormat = plugin.getLanguage().getMessage("Commands.HelpFormat").replaceAll("\\{MainCommand\\}", "%1\\$s").replaceAll("\\{SubCommand\\}", "%2\\$s").replaceAll("\\{Parameters\\}", "%3\\$s").replaceAll("\\{Description\\}", "%4\\$s").replaceAll("suggest_command", "%5\\$s"); + //TODO handle click action placeholder + helpFormat = plugin.getLanguage().getMessage("Commands.HelpFormat").placeholder("MainCommand").placeholder("SubCommand").placeholder("Parameters").placeholder("Description");//.placeholder("suggest_command", "%5\\$s"); // Setting the help format for the marry commands as well as the no permissions and not from console message try diff --git a/pom.xml b/pom.xml index 881c73a..f4e95d3 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ pom - 2.4.21-SNAPSHOT + 2.4.21 UTF-8 UTF-8