This commit is contained in:
drtshock 2015-04-14 23:06:16 -05:00
parent ad13062117
commit dde0b20775
380 changed files with 38917 additions and 46821 deletions

View file

@ -4,35 +4,29 @@ 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";
public final class Console implements IReplyTo {
private static final Console instance = new Console();
private CommandSource replyTo;
public final static String NAME = "Console";
private Console()
{
}
private Console() {
}
public static CommandSender getCommandSender(Server server) throws Exception
{
return server.getConsoleSender();
}
public static CommandSender getCommandSender(Server server) throws Exception {
return server.getConsoleSender();
}
@Override
public void setReplyTo(CommandSource user)
{
replyTo = user;
}
@Override
public void setReplyTo(CommandSource user) {
replyTo = user;
}
@Override
public CommandSource getReplyTo()
{
return replyTo;
}
@Override
public CommandSource getReplyTo() {
return replyTo;
}
public static Console getConsoleReplyTo()
{
return instance;
}
public static Console getConsoleReplyTo() {
return instance;
}
}