mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 03:38:28 +00:00
Prevent EssSpawn trying to handle spawning of jailed players.
This commit is contained in:
parent
ac3e65a829
commit
1b780a4364
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ public class EssentialsSpawnPlayerListener implements Listener
|
|||
{
|
||||
final User user = ess.getUser(event.getPlayer());
|
||||
|
||||
if (user.isJailed() && user.getJail() != null && !user.getJail().isEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (ess.getSettings().getRespawnAtHome())
|
||||
{
|
||||
Location home;
|
||||
|
|
Loading…
Reference in a new issue