mirror of
https://github.com/plexusorg/Module-TFMExtras.git
synced 2024-12-28 02:24:33 +00:00
forgot this
This commit is contained in:
parent
a4c0c1c003
commit
ad67365856
2 changed files with 4 additions and 4 deletions
|
@ -156,7 +156,7 @@ public class TFMExtras extends PlexModule
|
|||
return Collections.unmodifiableSet(classes);
|
||||
}
|
||||
|
||||
private boolean swmEnabled()
|
||||
public boolean swmEnabled()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue