use of com.github.sirblobman.combatlogx.api.manager.IPunishManager in project CombatLogX by SirBlobman.
the class PlaceholderHelper method getPunishmentCount.
public static String getPunishmentCount(ICombatLogX plugin, Player player) {
IPunishManager punishManager = plugin.getPunishManager();
long punishmentCount = punishManager.getPunishmentCount(player);
return Long.toString(punishmentCount);
}
use of com.github.sirblobman.combatlogx.api.manager.IPunishManager in project CombatLogX by SirBlobman.
the class ListenerUntag method onUntag.
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onUntag(PlayerUntagEvent e) {
Player player = e.getPlayer();
LivingEntity previousEnemy = e.getPreviousEnemy();
UntagReason untagReason = e.getUntagReason();
ICombatLogX plugin = getCombatLogX();
IPunishManager punishManager = plugin.getPunishManager();
punishManager.punish(player, untagReason, previousEnemy);
sendUntagMessage(player, untagReason);
runUntagCommands(player, previousEnemy);
}
use of com.github.sirblobman.combatlogx.api.manager.IPunishManager in project CombatLogX by SirBlobman.
the class CombatPlugin method onReload.
@Override
public void onReload() {
ConfigurationManager configurationManager = getConfigurationManager();
List<String> fileNameList = Arrays.asList("commands.yml", "config.yml", "punish.yml");
for (String fileName : fileNameList) {
configurationManager.reload(fileName);
}
LanguageManager languageManager = getLanguageManager();
languageManager.reloadLanguages();
IPunishManager punishManager = getPunishManager();
punishManager.loadPunishments();
ExpansionManager expansionManager = getExpansionManager();
expansionManager.reloadConfigs();
}
Aggregations