Update CommandManager.java

- Fixed locale function to correctly return "event.general.nopermission" message.
This commit is contained in:
Mitchell Simpson 2019-07-31 13:22:53 +00:00
parent 87d9565818
commit 238e1effdb

View File

@ -84,7 +84,7 @@ public class CommandManager implements CommandExecutor {
} }
return; return;
} }
instance.getLocale().newMessage("event.general.nopermission").sendPrefixedMessage(sender); instance.getLocale().getMessage("event.general.nopermission").sendPrefixedMessage(sender);
} }
public List<AbstractCommand> getCommands() { public List<AbstractCommand> getCommands() {