blob: 40b4cb217681193e0d0c04f781d0b3013d183cd0 (
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
90
91
92
93
94
95
|
package net.ess3.testserver;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import net.ess3.api.server.CommandSender;
import net.ess3.api.server.Player;
import net.ess3.api.server.Server;
import net.ess3.api.server.World;
public class TestServer implements Server {
public TestServer()
{
}
@Override
public List<World> getWorlds()
{
return Collections.<World>singletonList(new TestWorld());
}
@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.");
}
@Override
public Player getPlayer(String name)
{
throw new UnsupportedOperationException("Not supported yet.");
}
}
|