Change logging to debug for slimeworld on quit event

This commit is contained in:
Focusvity 2023-12-13 09:51:00 +11:00
parent fd0b2ed76a
commit fb724fb104
No known key found for this signature in database
GPG key ID: FC3BE6D52CCDB38F

View file

@ -44,8 +44,8 @@ public class PlayerListener extends PlexListener
public void unloadWorld(PlayerQuitEvent event)
{
final Player player = event.getPlayer();
PlexLog.log("{0}", TFMExtras.getModule().getSlimeWorldHook().isWorldLoaded(player.getUniqueId().toString()));
PlexLog.log("{0}", Bukkit.getWorld(player.getUniqueId().toString()) != null);
PlexLog.debug("Slime World Loaded: {0}", TFMExtras.getModule().getSlimeWorldHook().isWorldLoaded(player.getUniqueId().toString()));
PlexLog.debug("World Loaded: {0}", Bukkit.getWorld(player.getUniqueId().toString()) != null);
if (TFMExtras.getModule().getSlimeWorldHook().isWorldLoaded(player.getUniqueId().toString()) && Bukkit.getWorld(player.getUniqueId().toString()) != null)
{
Bukkit.unloadWorld(player.getUniqueId().toString(), true);