mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-26 15:03:07 +00:00
Removed access right identification by name to prevent a potential security risk.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user