blob: fd967c12abf9d9bbc6e423863c4275e3af112fea (
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
37
38
39
40
41
42
43
44
45
46
47
|
package net.minecraft.server;
public class RemoteControlCommandListener implements ICommandListener {
public static final RemoteControlCommandListener instance = new RemoteControlCommandListener();
private StringBuffer b = new StringBuffer();
public RemoteControlCommandListener() {}
public void e() {
this.b.setLength(0);
}
public String f() {
return this.b.toString();
}
public String getName() {
return "Rcon";
}
public IChatBaseComponent getScoreboardDisplayName() {
return new ChatComponentText(this.getName());
}
// CraftBukkit start - Send a String
public void sendMessage(String message) {
this.b.append(message);
}
// CraftBukkit end
public void sendMessage(IChatBaseComponent ichatbasecomponent) {
this.b.append(ichatbasecomponent.c());
}
public boolean a(int i, String s) {
return true;
}
public ChunkCoordinates getChunkCoordinates() {
return new ChunkCoordinates(0, 0, 0);
}
public World getWorld() {
return MinecraftServer.getServer().getWorld();
}
}
|