Small fixes

Fixed consumables being placed when on cooldown
Consumable cooldowns now show in the actionbar
This commit is contained in:
Aria 2019-11-25 15:53:46 +01:00
parent bc92e7f228
commit 66a27dcb10
2 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,8 @@ public class ItemUse implements Listener {
// commands & consummables
if (event.getAction().name().contains("RIGHT_CLICK")) {
if (!useItem.getPlayerData().canUseItem(useItem.getMMOItem().getId())) {
Message.ITEM_ON_COOLDOWN.format(ChatColor.RED, "#left#", digit.format(useItem.getPlayerData().getItemCooldown(useItem.getMMOItem().getId()))).send(player);
Message.ITEM_ON_COOLDOWN.format(ChatColor.RED, "#left#", digit.format(useItem.getPlayerData().getItemCooldown(useItem.getMMOItem().getId()))).send(player, "item-cooldown");
event.setCancelled(true);
return;
}

View File

@ -178,6 +178,7 @@ ability-player-damage: true
# Might interfere with other action bar plugins.
action-bar-display:
ability-cooldown: true
item-cooldown: true
not-enough-mana: true
not-enough-stamina: true
two-handed: true