27 lines
719 B
Java
27 lines
719 B
Java
package org.bukkit.craftbukkit.command;
|
|
|
|
import net.minecraft.server.RemoteControlCommandListener;
|
|
import org.bukkit.command.RemoteConsoleCommandSender;
|
|
|
|
public class CraftRemoteConsoleCommandSender extends ServerCommandSender implements RemoteConsoleCommandSender {
|
|
public CraftRemoteConsoleCommandSender() {
|
|
super();
|
|
}
|
|
|
|
public void sendMessage(String message) {
|
|
RemoteControlCommandListener.a.sendMessage(message);
|
|
}
|
|
|
|
public String getName() {
|
|
return "Rcon";
|
|
}
|
|
|
|
public boolean isOp() {
|
|
return true;
|
|
}
|
|
|
|
public void setOp(boolean value) {
|
|
throw new UnsupportedOperationException("Cannot change operator status of remote controller.");
|
|
}
|
|
}
|