Add leaderboard command for top 10

This commit is contained in:
FirephoenixX02 2026-03-25 17:59:00 +01:00
parent 3c65988b54
commit d00fa703c6
3 changed files with 88 additions and 3 deletions

View file

@ -1,6 +1,7 @@
package me.firephoenix.deathcounter;
import me.clip.placeholderapi.PlaceholderAPI;
import me.firephoenix.deathcounter.commands.DeathsCommand;
import me.firephoenix.deathcounter.listener.DeathListener;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
@ -33,9 +34,11 @@ public final class DeathCounter extends JavaPlugin {
createSqLiteDatabase();
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) { //
new DeathPlaceholderExpansion(this).register(); //
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
new DeathPlaceholderExpansion(this).register();
}
getCommand("deaths").setExecutor(new DeathsCommand(this));
}
private void createSqLiteDatabase() {