Fixed /wh and /worldhandler denying other commands in multiplayer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ public class Main
|
||||
public static final String MODID = "worldhandler";
|
||||
public static final String MC_VERSION = "1.12.2";
|
||||
public static final String MC_COMPATIBLE = "1.12";
|
||||
public static final String VERSION = "2.1";
|
||||
public static final String VERSION = "2.1.1";
|
||||
public static final String FULL_VERSION = MC_VERSION + "-" + VERSION;
|
||||
public static final String NAME_AND_VERSION = NAME + " " + FULL_VERSION;
|
||||
public static final String URL = "https://minecraft.curseforge.com/projects/world-handler-command-gui";
|
||||
|
||||
Reference in New Issue
Block a user