mirror of
https://github.com/plexusorg/Module-TFMExtras.git
synced 2024-11-21 19:05:00 +00:00
forgot this
This commit is contained in:
parent
a4c0c1c003
commit
ad67365856
@ -156,7 +156,7 @@ public class TFMExtras extends PlexModule
|
|||||||
return Collections.unmodifiableSet(classes);
|
return Collections.unmodifiableSet(classes);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean swmEnabled()
|
public boolean swmEnabled()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -44,9 +44,9 @@ public class PlayerListener extends PlexListener
|
|||||||
public void unloadWorld(PlayerQuitEvent event)
|
public void unloadWorld(PlayerQuitEvent event)
|
||||||
{
|
{
|
||||||
final Player player = event.getPlayer();
|
final Player player = event.getPlayer();
|
||||||
PlexLog.debug("Slime World Loaded: {0}", TFMExtras.getModule().getSlimeWorldHook().isWorldLoaded(player.getUniqueId().toString()));
|
// PlexLog.debug("Slime World Loaded: {0}", TFMExtras.getModule().getSlimeWorldHook().isWorldLoaded(player.getUniqueId().toString()));
|
||||||
PlexLog.debug("World Loaded: {0}", Bukkit.getWorld(player.getUniqueId().toString()) != null);
|
// 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)
|
if (TFMExtras.getModule().swmEnabled() && TFMExtras.getModule().getSlimeWorldHook().isWorldLoaded(player.getUniqueId().toString()) && Bukkit.getWorld(player.getUniqueId().toString()) != null)
|
||||||
{
|
{
|
||||||
Bukkit.unloadWorld(player.getUniqueId().toString(), true);
|
Bukkit.unloadWorld(player.getUniqueId().toString(), true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user