/FileExtraction/Java_unseen/Wind-Development_WindSpigot/WindSpigot-Server/src/main/java/net/minecraft/server/RemoteControlCommandListener.java
package net.minecraft.server;

public class RemoteControlCommandListener implements ICommandListener {

	private static final RemoteControlCommandListener instance = new RemoteControlCommandListener();
	private StringBuffer b = new StringBuffer();

	public RemoteControlCommandListener() {
	}

	public static RemoteControlCommandListener getInstance() {
		return RemoteControlCommandListener.instance;
	}

	public void i() {
		this.b.setLength(0);
	}

	public String j() {
		return this.b.toString();
	}

	@Override
	public String getName() {
		return "Rcon";
	}

	@Override
	public IChatBaseComponent getScoreboardDisplayName() {
		return new ChatComponentText(this.getName());
	}

	// CraftBukkit start - Send a String
	public void sendMessage(String message) {
		this.b.append(message);
	}
	// CraftBukkit end

	@Override
	public void sendMessage(IChatBaseComponent ichatbasecomponent) {
		this.b.append(ichatbasecomponent.c());
	}

	@Override
	public boolean a(int i, String s) {
		return true;
	}

	@Override
	public BlockPosition getChunkCoordinates() {
		return new BlockPosition(0, 0, 0);
	}

	@Override
	public Vec3D d() {
		return new Vec3D(0.0D, 0.0D, 0.0D);
	}

	@Override
	public World getWorld() {
		return MinecraftServer.getServer().getWorld();
	}

	@Override
	public Entity f() {
		return null;
	}

	@Override
	public boolean getSendCommandFeedback() {
		return true;
	}

	@Override
	public void a(CommandObjectiveExecutor.EnumCommandResult commandobjectiveexecutor_enumcommandresult, int i) {
	}
}
