mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-02 18:46:13 +00: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue