combat tracking is working again!

This commit is contained in:
2024-02-28 20:09:56 +01:00
parent 3c7904786e
commit 58a4a9f25d
4 changed files with 14 additions and 7 deletions
@@ -6,6 +6,7 @@ import me.youhavetrouble.preventstabby.hooks.PlaceholderApiHook;
import me.youhavetrouble.preventstabby.hooks.WorldGuardHook;
import me.youhavetrouble.preventstabby.data.PlayerListener;
import me.youhavetrouble.preventstabby.data.PlayerManager;
import me.youhavetrouble.preventstabby.listeners.PlayerDamageListener;
import me.youhavetrouble.preventstabby.util.*;
import org.bstats.bukkit.Metrics;
import org.bukkit.command.CommandSender;
@@ -33,6 +34,8 @@ public final class PreventStabby extends JavaPlugin {
// Register listeners TODO
getServer().getPluginManager().registerEvents(new PlayerListener(), this);
getServer().getPluginManager().registerEvents(new PlayerDamageListener(this), this);
// Register command
PluginCommand pvpCommand = getCommand("pvp");
if (pvpCommand == null) {