Add leaderboard command for top 10
This commit is contained in:
parent
3c65988b54
commit
d00fa703c6
3 changed files with 88 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue