mirror of
https://github.com/essentials/Essentials.git
synced 2025-10-02 09:07:08 +02:00
Several bug fixes and cleanup.
Found using PMD and FindBugs. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1553 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
@@ -20,7 +20,7 @@ import org.bukkit.scheduler.BukkitScheduler;
|
||||
public class FakeServer implements Server
|
||||
{
|
||||
private List<Player> players = new ArrayList<Player>();
|
||||
private List<World> worlds = new ArrayList<World>();
|
||||
private final List<World> worlds = new ArrayList<World>();
|
||||
|
||||
public String getName()
|
||||
{
|
||||
@@ -186,12 +186,12 @@ public class FakeServer implements Server
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
void addPlayer(Player base1)
|
||||
public void addPlayer(Player base1)
|
||||
{
|
||||
players.add(base1);
|
||||
}
|
||||
|
||||
OfflinePlayer createPlayer(String name)
|
||||
public OfflinePlayer createPlayer(String name)
|
||||
{
|
||||
OfflinePlayer player = new OfflinePlayer(name);
|
||||
player.setLocation(new Location(worlds.get(0), 0, 0, 0, 0, 0));
|
||||
|
Reference in New Issue
Block a user