[trunk] Update user data if a command from /powertool is removed

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1217 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo 2011-04-16 13:41:36 +00:00
parent 8ac6f92250
commit 201ffa4770

View File

@ -794,9 +794,9 @@ public class User extends PlayerExtension implements Comparable<User>, IReplyTo
if (command == null || command.trim().isEmpty())
{
tools.remove(Integer.valueOf(stack.getTypeId()));
return;
} else {
tools.put(Integer.valueOf(stack.getTypeId()), command.trim());
}
tools.put(Integer.valueOf(stack.getTypeId()), command.trim());
data.put("powertools", tools);
flush();
}