mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-11 20:58:59 +00:00
Prevent EssSpawn trying to handle spawning of jailed players.
This commit is contained in:
parent
a5e3182dad
commit
340f0c68eb
|
@ -35,6 +35,11 @@ public class EssentialsSpawnPlayerListener implements Listener
|
||||||
{
|
{
|
||||||
final User user = ess.getUser(event.getPlayer());
|
final User user = ess.getUser(event.getPlayer());
|
||||||
|
|
||||||
|
if (user.isJailed() && user.getJail() != null && !user.getJail().isEmpty())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (ess.getSettings().getRespawnAtHome())
|
if (ess.getSettings().getRespawnAtHome())
|
||||||
{
|
{
|
||||||
Location home;
|
Location home;
|
||||||
|
|
Loading…
Reference in a new issue