mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
[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:
parent
8ac6f92250
commit
201ffa4770
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user