From 052d2393aa48c40bcd1e1422d56f76d65bea306b Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Sat, 31 Dec 2022 01:27:17 +0100 Subject: [PATCH] language fix when trying to open a gui that does not esist, it now shows which gui you tried to open --- .../t2code/commandguiv2/Spigot/cmdManagement/Commands.java | 2 +- .../net/t2code/commandguiv2/Spigot/config/languages/MSG.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/cmdManagement/Commands.java b/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/cmdManagement/Commands.java index 8622d84..6ade349 100644 --- a/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/cmdManagement/Commands.java +++ b/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/cmdManagement/Commands.java @@ -202,6 +202,6 @@ public class Commands { } else T2Csend.player(player, SelectMessages.NoPermissionForCommand.replace("[cmd]", "/commandgui " + gui.key) .replace("[perm]", "commandgui.command." + arg.toLowerCase())); } else T2Csend.player(player, SelectMessages.GUIIsDisabled.replace("[gui]", gui.key)); - } else T2Csend.player(player, SelectMessages.guiNotFound); + } else T2Csend.player(player, SelectMessages.guiNotFound.replace("[gui]", arg)); } } diff --git a/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/config/languages/MSG.java b/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/config/languages/MSG.java index b03e341..a6a48f1 100644 --- a/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/config/languages/MSG.java +++ b/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/config/languages/MSG.java @@ -43,7 +43,7 @@ public class MSG { public static String EN_UseItemDisabledInGameMode = "[prefix] &cThe UseItem is disabled in this GameMode!"; public static String EN_UseItemDisabledInWorld = "[prefix] &cThe UseItem is disabled in this World!"; - public static String EN_GUInotFound = "[prefix] &cThe GUI chosen by the does not exist."; + public static String EN_GUInotFound = "[prefix] &cThe gui [gui] does not exist!"; public static String EN_GUIisDisabled = "[prefix] &cThe GUI [gui] &cis currently Disabled!"; public static String EN_GiveSender = "[prefix] &2You have given &6[player] &2an [item] &2!"; @@ -113,7 +113,7 @@ public class MSG { public static String DE_onServerChange = "[prefix] &2Du wirst auf den Server §e[server] §2verbunden."; - public static String DE_GUInotFound = "[prefix] &cDie von die gew[ae]hlte GUI gibt es nicht."; + public static String DE_GUInotFound = "[prefix] &cDie gui [gui] existiert nicht!"; public static String DE_GUIisDisabled = "[prefix] &cDie GUI [gui] &cist derzeit Deaktiviert!"; public static String DE_GiveSender = "[prefix] &2Du hast &6[player] &2ein [item] &2gegeben!";