blob: d070abcb63ab241bdc360f2a752f10ddc10d17c9 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
package com.earth2me.essentials.testserver;
import com.earth2me.essentials.api.server.CommandSender;
import com.earth2me.essentials.api.server.Player;
import com.earth2me.essentials.api.server.IServer;
import com.earth2me.essentials.api.server.World;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
public class Server implements IServer {
public Server()
{
}
@Override
public List<World> getWorlds()
{
return Collections.<World>singletonList(new World());
}
@Override
public World getWorld(final String name)
{
final World world = getWorlds().get(0);
if (name.equals(world.getName())) {
return world;
} else {
return null;
}
}
public void addPlayer(final String name)
{
}
@Override
public int broadcastMessage(String message)
{
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public Collection<Player> getOnlinePlayers()
{
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public CommandSender getConsoleSender()
{
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void dispatchCommand(CommandSender sender, String command)
{
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void banIP(String ip)
{
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public <T> T getServiceProvider(Class<T> clazz)
{
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public String getVersion()
{
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void unbanIP(String string)
{
throw new UnsupportedOperationException("Not supported yet.");
}
}
|