mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-25 15:11:20 +01:00
Small fixes
Fixed consumables being placed when on cooldown Consumable cooldowns now show in the actionbar
This commit is contained in:
parent
bc92e7f228
commit
66a27dcb10
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user