9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-28 11:29:18 +00:00

feat: add option to disable World Guard listener #87

This commit is contained in:
LoJoSho
2023-04-02 12:30:41 -05:00
parent ca01a94502
commit 744fc87491
3 changed files with 15 additions and 1 deletions

View File

@@ -123,7 +123,7 @@ public final class HMCCosmeticsPlugin extends JavaPlugin {
}
// WorldGuard
if (Bukkit.getPluginManager().getPlugin("WorldGuard") != null) {
if (Bukkit.getPluginManager().getPlugin("WorldGuard") != null && Settings.isWorldGuardMoveCheckEnabled()) {
getServer().getPluginManager().registerEvents(new WGListener(), this);
}
}