More work on the config code

This commit is contained in:
snowleo 2011-11-23 02:43:38 +01:00
parent e683ce5751
commit 8aaaed2ef8
34 changed files with 1016 additions and 298 deletions

View file

@ -28,9 +28,17 @@ public class FakeServer implements Server
private List<Player> players = new ArrayList<Player>();
private final List<World> worlds = new ArrayList<World>();
public FakeServer()
{
if (Bukkit.getServer() == null)
{
Bukkit.setServer(this);
}
}
public String getName()
{
return "Test Server";
return "Essentials Fake Server";
}
public String getVersion()
@ -576,6 +584,6 @@ public class FakeServer implements Server
@Override
public String getBukkitVersion()
{
throw new UnsupportedOperationException("Not supported yet.");
return "Essentials Fake-Server";
}
}