Java Code Examples for net.minecraft.entity.player.EntityPlayer.canCommandSenderUseCommand()

The following are Jave code examples for showing how to use canCommandSenderUseCommand() of the net.minecraft.entity.player.EntityPlayer class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: AuthMod   File:   View Source Code Vote up 5 votes
public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException {
	EntityPlayer player = (EntityPlayer) sender;
	if(player.canCommandSenderUseCommand(3, "com.auth.mod.commands.see")){
	player.addChatMessage(makesimpletext((String) Main.passwords.get(args[0])));