Fix commands for usage in Command Blocks (#748)

This commit is contained in:
Nicholas Ignoffo 2016-05-28 05:19:50 -07:00
parent a37cf7d60b
commit 439e830105
2 changed files with 155 additions and 154 deletions

View file

@ -53,17 +53,17 @@ public abstract class SubCommandBase implements ISubCommand
return given > low && given < high;
}
protected void displayHelpString(ICommandSender commandSender, String display, Object... info)
public static void displayHelpString(ICommandSender commandSender, String display, Object... info)
{
commandSender.addChatMessage(new TextComponentString(TextHelper.localizeEffect(display, info)));
}
protected void displayErrorString(ICommandSender commandSender, String display, Object... info)
public static void displayErrorString(ICommandSender commandSender, String display, Object... info)
{
commandSender.addChatMessage(new TextComponentString(TextHelper.localizeEffect(display, info)));
}
protected void displaySuccessString(ICommandSender commandSender, String display, Object... info)
public static void displaySuccessString(ICommandSender commandSender, String display, Object... info)
{
commandSender.addChatMessage(new TextComponentString(TextHelper.localizeEffect(display, info)));
}