package com.hyperfresh.mchyperchat.bukkit;

import com.hyperfresh.mchyperchat.User;
import org.bukkit.command.ConsoleCommandSender;

/**
 * A wrapper for the Bukkit ConsoleCommandSender.
 */
public class BukkitConsole implements User
{
	private final ConsoleCommandSender handle;

	private String lastSaid;

	public BukkitConsole(ConsoleCommandSender console, String lastSaid)
	{
		this.handle = console;
		this.lastSaid = lastSaid;
	}

	@Override
	public String getName()
	{
		return handle.getName();
	}

	@Override
	public String getLastMessage()
	{
		return lastSaid;
	}

	@Override
	public void setLastMessage(String said)
	{
		lastSaid = said;
	}
}

@@ -645,11 +645,101 @@
 said;%0A%09%7D
+%0A%0A%09@Override%0A%09public void sendMessage(String message)%0A%09%7B%0A%09%09handle.sendMessage(message);%0A%09%7D
 %0A%7D%0A

implement sendMessage in BukkitConsole