TF-EssentialsX/Essentials/src/com/earth2me/essentials/Console.java

37 lines
627 B
Java
Raw Normal View History

package com.earth2me.essentials;
import org.bukkit.Server;
import org.bukkit.command.CommandSender;
public final class Console implements IReplyTo
{
private static Console instance = new Console();
private CommandSender replyTo;
public final static String NAME = "Console";
private Console()
{
}
public static CommandSender getCommandSender(Server server) throws Exception
{
return server.getConsoleSender();
}
public void setReplyTo(CommandSender user)
{
replyTo = user;
}
public CommandSender getReplyTo()
{
return replyTo;
}
public static Console getConsoleReplyTo()
{
return instance;
}
}