Fixed /wh and /worldhandler denying other commands in multiplayer

This commit is contained in:
Marcel Konrad
2018-02-19 22:58:09 +01:00
parent 12c980841b
commit adcdeb533f
4 changed files with 12 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ public class FakeCommandHandler extends CommandHandler
public void tryCommand(ICommand command, ClientChatEvent event)
{
if(event.getMessage().startsWith("/" + command.getName()) || event.getMessage().startsWith("/" + command.getName() + " "))
if(event.getMessage().equals("/" + command.getName()) || event.getMessage().startsWith("/" + command.getName() + " "))
{
this.fakeCommand(command, event);
}