Allow the use of the world spawn in EssentialsSpawn for new players.

This commit is contained in:
snowleo 2011-08-11 13:31:57 +02:00
parent b851cd10f2
commit 2e565f8881
2 changed files with 14 additions and 10 deletions

View File

@ -484,6 +484,7 @@ newbies:
announce-format: '&dWelcome {DISPLAYNAME} to the server!'
# When we spawn for the first time, which spawnpoint do we use?
# Set to "none" if you want to use the spawn point of the world.
spawnpoint: newbies
# End of File <-- No seriously, you're done with configuration.

View File

@ -59,6 +59,8 @@ public class EssentialsSpawnPlayerListener extends PlayerListener
return;
}
user.setNew(false);
if (!"none".equalsIgnoreCase(ess.getSettings().getNewbieSpawn()))
{
ess.scheduleSyncDelayedTask(new Runnable()
{
public void run()
@ -73,6 +75,7 @@ public class EssentialsSpawnPlayerListener extends PlayerListener
}
}
});
}
if (ess.getSettings().getAnnounceNewPlayers())
{