Use lucky variable; Don't use the actual permission node when not needed.

This commit is contained in:
TfT_02
2013-01-10 19:45:36 +01:00
parent 3f899380d9
commit e01b6f175c
11 changed files with 17 additions and 18 deletions

View File

@@ -99,7 +99,7 @@ public class WoodcuttingCommand extends SkillCommand {
}
if (canDoubleDrop && !doubleDropsDisabled) {
if (player.hasPermission("mcmmo.perks.lucky.woodcutting"))
if (lucky)
player.sendMessage(LocaleLoader.getString("Woodcutting.Ability.Chance.DDrop", new Object[] { doubleDropChance }) + LocaleLoader.getString("Perks.lucky.bonus", new Object[] { doubleDropChanceLucky }));
else
player.sendMessage(LocaleLoader.getString("Woodcutting.Ability.Chance.DDrop", new Object[] { doubleDropChance }));