forgot this

This commit is contained in:
Telesphoreo 2024-01-10 19:27:35 -06:00
parent a4c0c1c003
commit ad67365856
No known key found for this signature in database
GPG key ID: 9D1991811E093C02
2 changed files with 4 additions and 4 deletions

View file

@ -156,7 +156,7 @@ public class TFMExtras extends PlexModule
return Collections.unmodifiableSet(classes);
}
private boolean swmEnabled()
public boolean swmEnabled()
{
try
{

View file

@ -44,9 +44,9 @@ public class PlayerListener extends PlexListener
public void unloadWorld(PlayerQuitEvent event)
{
final Player player = event.getPlayer();
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)
// 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().swmEnabled() && TFMExtras.getModule().getSlimeWorldHook().isWorldLoaded(player.getUniqueId().toString()) && Bukkit.getWorld(player.getUniqueId().toString()) != null)
{
Bukkit.unloadWorld(player.getUniqueId().toString(), true);
}