diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-04 15:38:25 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-04 15:38:25 +0000 |
commit | b19fa531cf4d88cd8a983df90d3d3380942e95f2 (patch) | |
tree | 868a627686c91fa6cc236079aa95671e8a2bab56 | |
parent | 5f177b3b1eec7ab329586a8d7eb6f2c875240e3f (diff) | |
download | Essentials-b19fa531cf4d88cd8a983df90d3d3380942e95f2.tar Essentials-b19fa531cf4d88cd8a983df90d3d3380942e95f2.tar.gz Essentials-b19fa531cf4d88cd8a983df90d3d3380942e95f2.tar.lz Essentials-b19fa531cf4d88cd8a983df90d3d3380942e95f2.tar.xz Essentials-b19fa531cf4d88cd8a983df90d3d3380942e95f2.zip |
[trunk] Clear Inventory: Fix "Player not found" message
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1124 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java b/Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java index de5c11376..3bfaebff2 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java @@ -33,6 +33,7 @@ public class Commandclearinventory extends EssentialsCommand user.sendMessage("§7Inventory of §c" + p.getDisplayName() + "§7 cleared."); user.charge(this); } + return; } throw new Exception("Player not found"); } @@ -79,6 +80,7 @@ public class Commandclearinventory extends EssentialsCommand p.getInventory().clear(); sender.sendMessage("§7Inventory of §c" + p.getDisplayName() + "§7 cleared."); } + return; } throw new Exception("Player not found"); } |