From 238e1effdb2f5c14292547059022389ebbb66f4d Mon Sep 17 00:00:00 2001 From: Mitchell Simpson Date: Wed, 31 Jul 2019 13:22:53 +0000 Subject: [PATCH] Update CommandManager.java - Fixed locale function to correctly return "event.general.nopermission" message. --- src/main/java/com/songoda/epicheads/command/CommandManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/epicheads/command/CommandManager.java b/src/main/java/com/songoda/epicheads/command/CommandManager.java index ae4a9b3..863717e 100644 --- a/src/main/java/com/songoda/epicheads/command/CommandManager.java +++ b/src/main/java/com/songoda/epicheads/command/CommandManager.java @@ -84,7 +84,7 @@ public class CommandManager implements CommandExecutor { } return; } - instance.getLocale().newMessage("event.general.nopermission").sendPrefixedMessage(sender); + instance.getLocale().getMessage("event.general.nopermission").sendPrefixedMessage(sender); } public List getCommands() {