From 201ffa477004bd05e9bbfed24cf40a1157bd4fd2 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sat, 16 Apr 2011 13:41:36 +0000 Subject: [PATCH] [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 --- Essentials/src/com/earth2me/essentials/User.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java index e83ae52a0..fa7cc37d4 100644 --- a/Essentials/src/com/earth2me/essentials/User.java +++ b/Essentials/src/com/earth2me/essentials/User.java @@ -794,9 +794,9 @@ public class User extends PlayerExtension implements Comparable, 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(); }