mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-11 17:15:07 +02:00
Prevent EssSpawn trying to handle spawning of jailed players.
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user