mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-18 21:34:43 +02:00
Use lucky variable; Don't use the actual permission node when not needed.
This commit is contained in:
@ -126,7 +126,7 @@ public class AxesCommand extends SkillCommand {
|
||||
}
|
||||
|
||||
if (canCritical) {
|
||||
if (player.hasPermission("mcmmo.perks.lucky.axes"))
|
||||
if (lucky)
|
||||
player.sendMessage(LocaleLoader.getString("Axes.Combat.CritChance", new Object[] { critChance }) + LocaleLoader.getString("Perks.lucky.bonus", new Object[] { critChanceLucky }));
|
||||
else
|
||||
player.sendMessage(LocaleLoader.getString("Axes.Combat.CritChance", new Object[] { critChance }));
|
||||
|
Reference in New Issue
Block a user