mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 15:02:17 +00:00
1.7.10 Files
Files added
This commit is contained in:
1 parent
393ea9b463
commit
a31efb2dc3
1768 files changed
+84831
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package foxz.commandhelper.permissions;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import foxz.commandhelper.AbstractCommandHelper;
|
||||
|
||||
public class OpOnly extends AbstractPermission {
|
||||
|
||||
@Override
|
||||
public String errorMsg() {
|
||||
return "Op Only";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean delegate(AbstractCommandHelper parent, String[] args) {
|
||||
if(!(parent.pcParam instanceof EntityPlayer))
|
||||
return true;
|
||||
return MinecraftServer.getServer().getConfigurationManager().func_152596_g(((EntityPlayer)parent.pcParam).getGameProfile());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user