Skip to content

Commit

Permalink
Cheat mode no longer required in single player
Browse files Browse the repository at this point in the history
  • Loading branch information
gecgooden committed Oct 3, 2014
1 parent 9a83ec0 commit e5567d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public int getRequiredPermissionLevel()
@Override
public void processCommand(ICommandSender icommandsender, String[] astring)
{
if(!icommandsender.canCommandSenderUseCommand(getRequiredPermissionLevel(), this.getCommandName())) {
if(!icommandsender.canCommandSenderUseCommand(getRequiredPermissionLevel(), this.getCommandName()) && !MinecraftServer.getServer().isSinglePlayer()) {
ChatComponentTranslation chatTranslation = new ChatComponentTranslation("commands.generic.permission", new Object[0]);
MinecraftServer.getServer().addChatMessage(chatTranslation);
icommandsender.addChatMessage(new ChatComponentText(chatTranslation.getUnformattedTextForChat()));
Expand Down

0 comments on commit e5567d9

Please sign in to comment.