mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-06-30 17:59:43 +00:00
33 lines
719 B
Java
33 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;
|
|
}
|
|
}
|