add placeholderapi hook

This commit is contained in:
2022-03-22 23:02:58 +01:00
parent 52fb010270
commit 51f0f6c93b
6 changed files with 86 additions and 8 deletions
@@ -2,6 +2,7 @@ package me.youhavetrouble.preventstabby;
import me.youhavetrouble.preventstabby.commands.MainCommand;
import me.youhavetrouble.preventstabby.config.ConfigCache;
import me.youhavetrouble.preventstabby.hooks.PlacoholderApiHook;
import me.youhavetrouble.preventstabby.hooks.WorldGuardHook;
import me.youhavetrouble.preventstabby.players.PlayerManager;
import me.youhavetrouble.preventstabby.players.SmartCache;
@@ -77,6 +78,10 @@ public final class PreventStabby extends JavaPlugin {
worldGuardHook = false;
}
if (getServer().getPluginManager().getPlugin("PlaceholderAPI") != null) {
new PlacoholderApiHook(this).register();
}
Metrics metrics = new Metrics(this, 14074);
}