summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/Console.java
blob: dcdb65a0defd859e6060d198e8a50745b800c0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
	}
}