Make it so that /mk is always available in SSP
This commit is contained in:
parent
18519b5fa6
commit
b01cf3b8f7
1 changed files with 7 additions and 0 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue