From 26ed6aa840023dc9a7f5aa116e2654656742bb34 Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 29 Mar 2012 12:03:29 -0400 Subject: [PATCH] Fixed issue where adding XP via command without specifying a player didn't trigger level-ups. --- .../java/com/gmail/nossr50/commands/general/AddxpCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/general/AddxpCommand.java b/src/main/java/com/gmail/nossr50/commands/general/AddxpCommand.java index aa57e3c47..4afadbe5f 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/AddxpCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/AddxpCommand.java @@ -73,7 +73,9 @@ public class AddxpCommand implements CommandExecutor { } else if (args.length == 2 && m.isInt(args[1]) && Skills.isSkill(args[0])) { int newvalue = Integer.valueOf(args[1]); Users.getProfile(player).addXP(Skills.getSkillType(args[0]), newvalue, player); - player.sendMessage(ChatColor.RED + args[0] + " has been modified."); + player.sendMessage(ChatColor.GREEN + "Experience granted!"); //TODO: Needs more locale. + player.sendMessage(ChatColor.RED + args[0] + " has been modified."); //TODO: Needs more locale. + Skills.XpCheckAll(plugin.getServer().getPlayer(args[0])); } else { player.sendMessage(ChatColor.RED + "Usage is /addxp playername skillname xp"); //TODO: Needs more locale. }