All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.jorel.commandapi.commandsenders.BukkitBlockCommandSender Maven / Gradle / Ivy

There is a newer version: 9.5.3
Show newest version
package dev.jorel.commandapi.commandsenders;

import org.bukkit.command.BlockCommandSender;

public class BukkitBlockCommandSender implements AbstractBlockCommandSender, BukkitCommandSender {

	private final BlockCommandSender commandBlock;
	
	public BukkitBlockCommandSender(BlockCommandSender commandBlock) {
		this.commandBlock = commandBlock;
	}
	
	@Override
	public boolean hasPermission(String permissionNode) {
		return this.commandBlock.hasPermission(permissionNode);
	}
	
	@Override
	public boolean isOp() {
		return this.commandBlock.isOp();
	}

	@Override
	public BlockCommandSender getSource() {
		return this.commandBlock;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy