Removed access right identification by name to prevent a potential security risk.

This commit is contained in:
ProfMobius committed 2014-10-04 18:07:06 +02:00
1 parent 3a38873281
commit 6a4a2981fd
11 files changed
+21 -27

No files matched your search

@@ -48,7 +48,7 @@ public class CommandEntityCreate extends CommandBase {
if (sender instanceof DedicatedServer) return true;
//if ((sender instanceof EntityPlayerMP) && ((EntityPlayerMP)sender).playerNetServerHandler.netManager instanceof MemoryConnection) return true;
if (!(sender instanceof DedicatedServer) && !(sender instanceof EntityPlayerMP)) return true;
return PlayerTracker.INSTANCE.isPrivileged(((EntityPlayerMP)sender).getGameProfile().getName());
return PlayerTracker.INSTANCE.isPrivileged((EntityPlayerMP)sender);
}
}