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

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

There is a newer version: 9.5.3
Show newest version
package dev.jorel.commandapi.commandsenders;
import org.bukkit.command.ProxiedCommandSender;

public class BukkitProxiedCommandSender implements AbstractProxiedCommandSender, BukkitCommandSender {

	private final ProxiedCommandSender proxySender;
	
	public BukkitProxiedCommandSender(ProxiedCommandSender player) {
		this.proxySender = player;
	}
	
	@Override
	public boolean hasPermission(String permissionNode) {
		return this.proxySender.hasPermission(permissionNode);
	}
	
	@Override
	public boolean isOp() {
		return this.proxySender.isOp();
	}

	@Override
	public ProxiedCommandSender getSource() {
		return this.proxySender;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy