use of com.github.sirblobman.combatlogx.api.ICombatLogX in project CombatLogX by SirBlobman.
the class HookMVdWPlaceholderAPI method getNewbieHelper.
private Expansion getNewbieHelper() {
ICombatLogX plugin = this.expansion.getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
Optional<Expansion> optionalExpansion = expansionManager.getExpansion("NewbieHelper");
if (optionalExpansion.isPresent()) {
Expansion expansion = optionalExpansion.get();
State state = expansion.getState();
if (state == State.ENABLED)
return expansion;
}
return null;
}
use of com.github.sirblobman.combatlogx.api.ICombatLogX in project CombatLogX by SirBlobman.
the class HookMVdWPlaceholderAPI method register.
public void register() {
ICombatLogX combatLogX = this.expansion.getPlugin();
JavaPlugin plugin = combatLogX.getPlugin();
PlaceholderAPI.registerPlaceholder(plugin, "combatlogx_*", this);
}
use of com.github.sirblobman.combatlogx.api.ICombatLogX in project CombatLogX by SirBlobman.
the class MVdWPlaceholderAPIExpansion method onEnable.
@Override
public void onEnable() {
if (!checkDependency("MVdWPlaceholderAPI", true)) {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
HookMVdWPlaceholderAPI hook = new HookMVdWPlaceholderAPI(this);
hook.register();
}
use of com.github.sirblobman.combatlogx.api.ICombatLogX in project CombatLogX by SirBlobman.
the class CombatNpcManager method saveData.
public void saveData(OfflinePlayer player) {
ICombatLogX plugin = getCombatLogX();
PlayerDataManager playerDataManager = plugin.getPlayerDataManager();
playerDataManager.save(player);
}
use of com.github.sirblobman.combatlogx.api.ICombatLogX in project CombatLogX by SirBlobman.
the class CombatNpcManager method getData.
public YamlConfiguration getData(OfflinePlayer player) {
ICombatLogX plugin = getCombatLogX();
PlayerDataManager playerDataManager = plugin.getPlayerDataManager();
return playerDataManager.get(player);
}
Aggregations