mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-28 11:29:18 +00:00
Added placeholder api
This commit is contained in:
@@ -16,6 +16,7 @@ import io.github.fisher2911.hmccosmetics.message.Messages;
|
||||
import io.github.fisher2911.hmccosmetics.user.UserManager;
|
||||
import me.mattstudios.mf.base.CommandManager;
|
||||
import org.bstats.bukkit.Metrics;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import java.util.Arrays;
|
||||
@@ -29,6 +30,7 @@ public class HMCCosmetics extends JavaPlugin {
|
||||
private MessageHandler messageHandler;
|
||||
private CosmeticsMenu cosmeticsMenu;
|
||||
private CommandManager commandManager;
|
||||
private boolean papiEnabled;
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
@@ -45,6 +47,8 @@ public class HMCCosmetics extends JavaPlugin {
|
||||
this.registerListeners();
|
||||
|
||||
this.userManager.startTeleportTask();
|
||||
|
||||
this.papiEnabled = Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -100,5 +104,9 @@ public class HMCCosmetics extends JavaPlugin {
|
||||
public ProtocolManager getProtocolManager() {
|
||||
return protocolManager;
|
||||
}
|
||||
|
||||
public boolean isPapiEnabled() {
|
||||
return papiEnabled;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user