mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-27 00:49:44 +00:00
Don't try to spawn users who have disconnected before we have a chance to spawn them
This commit is contained in:
parent
0ea41d9169
commit
593cb8d56e
1 changed files with 9 additions and 3 deletions
|
@ -2,6 +2,7 @@ package com.earth2me.essentials.spawn;
|
||||||
|
|
||||||
import static com.earth2me.essentials.I18n._;
|
import static com.earth2me.essentials.I18n._;
|
||||||
import com.earth2me.essentials.IEssentials;
|
import com.earth2me.essentials.IEssentials;
|
||||||
|
import com.earth2me.essentials.OfflinePlayer;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
@ -85,6 +86,11 @@ public class EssentialsSpawnPlayerListener implements Listener
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
|
if (user.getBase() instanceof OfflinePlayer)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Location spawn = spawns.getSpawn(ess.getSettings().getNewbieSpawn());
|
Location spawn = spawns.getSpawn(ess.getSettings().getNewbieSpawn());
|
||||||
|
|
Loading…
Reference in a new issue