mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-05 06:07:54 +02:00
Allow the use of the world spawn in EssentialsSpawn for new players.
This commit is contained in:
@@ -484,6 +484,7 @@ newbies:
|
|||||||
announce-format: '&dWelcome {DISPLAYNAME} to the server!'
|
announce-format: '&dWelcome {DISPLAYNAME} to the server!'
|
||||||
|
|
||||||
# When we spawn for the first time, which spawnpoint do we use?
|
# 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
|
spawnpoint: newbies
|
||||||
|
|
||||||
# End of File <-- No seriously, you're done with configuration.
|
# End of File <-- No seriously, you're done with configuration.
|
||||||
|
@@ -59,6 +59,8 @@ public class EssentialsSpawnPlayerListener extends PlayerListener
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
user.setNew(false);
|
user.setNew(false);
|
||||||
|
if (!"none".equalsIgnoreCase(ess.getSettings().getNewbieSpawn()))
|
||||||
|
{
|
||||||
ess.scheduleSyncDelayedTask(new Runnable()
|
ess.scheduleSyncDelayedTask(new Runnable()
|
||||||
{
|
{
|
||||||
public void run()
|
public void run()
|
||||||
@@ -73,6 +75,7 @@ public class EssentialsSpawnPlayerListener extends PlayerListener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (ess.getSettings().getAnnounceNewPlayers())
|
if (ess.getSettings().getAnnounceNewPlayers())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user