Make it so that /mk is always available in SSP

This commit is contained in:
Ben Spiers 2013-07-29 21:38:10 +01:00
parent 18519b5fa6
commit b01cf3b8f7

View file

@ -8,10 +8,17 @@ import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender; import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ChatMessageComponent; import net.minecraft.util.ChatMessageComponent;
import net.minecraft.server.MinecraftServer;
public class CommandMekanism extends CommandBase public class CommandMekanism extends CommandBase
{ {
@Override @Override
public boolean canCommandSenderUseCommand(ICommandSender sender)
{
return MinecraftServer.getServer().isSinglePlayer() || super.canCommandSenderUseCommand(sender);
}
@Override
public String getCommandName() public String getCommandName()
{ {
return "mk"; return "mk";