mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-11 17:15:07 +02:00
Lets clean up the recipe window on player quit, just in case.
This commit is contained in:
@@ -131,6 +131,10 @@ public class EssentialsPlayerListener implements Listener
|
|||||||
{
|
{
|
||||||
user.setLastLocation();
|
user.setLastLocation();
|
||||||
}
|
}
|
||||||
|
if (user.isRecipeSee())
|
||||||
|
{
|
||||||
|
user.getPlayer().getOpenInventory().getTopInventory().clear();
|
||||||
|
}
|
||||||
user.updateActivity(false);
|
user.updateActivity(false);
|
||||||
user.dispose();
|
user.dispose();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user