mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-02 04:56:40 +00:00
sIgNifICanT buG FixEs (#105)
- Ignore totalfreedom.iml (people who clone from Git get this instead of TotalFreedomMod) - Essentials check before running /denick - Revise grammar in /invis - WorldEdit check for /setl (since W/E is no longer a required dependency) - WorldEdit check for /gtfo - WorldEdit check for /unban - Refactor -> LibsDisguiseBridge: isPluginEnabled -> isEnabled - Remove unneccesary ChatColor in /wiperegions - Use BlockData in Trailer - Revise /wiewarps grammar
This commit is contained in:
@ -7,6 +7,7 @@ import me.totalfreedom.libsdisguise.TF_DisguiseAPI;
|
||||
import me.totalfreedom.totalfreedommod.FreedomService;
|
||||
import me.totalfreedom.totalfreedommod.TotalFreedomMod;
|
||||
import me.totalfreedom.totalfreedommod.util.FLog;
|
||||
import net.coreprotect.CoreProtect;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
@ -124,15 +125,10 @@ public class LibsDisguisesBridge extends FreedomService
|
||||
return !DisallowedDisguises.disabled;
|
||||
}
|
||||
|
||||
public boolean isPluginEnabled()
|
||||
public boolean isEnabled()
|
||||
{
|
||||
Plugin ld = getLibsDisguisesPlugin();
|
||||
final LibsDisguises libsDisguises = getLibsDisguisesPlugin();
|
||||
|
||||
if (ld == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return ld.isEnabled();
|
||||
return libsDisguises != null && libsDisguises.isEnabled();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user