mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 08:27:45 +00:00
27 lines
638 B
Java
27 lines
638 B
Java
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
package foxz.commandhelper.permissions;
|
|
|
|
import foxz.commandhelper.AbstractCommandHelper;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
/**
|
|
* @author foxz
|
|
*/
|
|
public class PlayerOnly extends AbstractPermission {
|
|
|
|
@Override
|
|
public String errorMsg() {
|
|
return "Player Only";
|
|
}
|
|
|
|
@Override
|
|
public boolean delegate(AbstractCommandHelper parent, String[] args) {
|
|
return parent.pcParam instanceof EntityPlayer;
|
|
}
|
|
|
|
}
|