dev.jorel.commandapi.commandsenders.BukkitNativeProxyCommandSender Maven / Gradle / Ivy
package dev.jorel.commandapi.commandsenders;
import dev.jorel.commandapi.wrappers.NativeProxyCommandSender;
public class BukkitNativeProxyCommandSender implements AbstractNativeProxyCommandSender, BukkitCommandSender {
private final NativeProxyCommandSender proxySender;
public BukkitNativeProxyCommandSender(NativeProxyCommandSender 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 NativeProxyCommandSender getSource() {
return this.proxySender;
}
}