mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 20:29:20 +00:00
32 lines
719 B
Java
32 lines
719 B
Java
package com.earth2me.essentials;
|
|
|
|
import org.bukkit.Server;
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
|
|
public final class Console implements IReplyTo {
|
|
private static final Console instance = new Console();
|
|
private CommandSource replyTo;
|
|
public final static String NAME = "Console";
|
|
|
|
private Console() {
|
|
}
|
|
|
|
public static CommandSender getCommandSender(Server server) throws Exception {
|
|
return server.getConsoleSender();
|
|
}
|
|
|
|
@Override
|
|
public void setReplyTo(CommandSource user) {
|
|
replyTo = user;
|
|
}
|
|
|
|
@Override
|
|
public CommandSource getReplyTo() {
|
|
return replyTo;
|
|
}
|
|
|
|
public static Console getConsoleReplyTo() {
|
|
return instance;
|
|
}
|
|
}
|