summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-04-04 15:38:25 +0000
committersnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-04-04 15:38:25 +0000
commitce357dfb10d0fc87e58b6e2ccea7609c2b429229 (patch)
treec700912a0610e889e5ac061c66f5aa2e56deb186
parent7eb32d3ea958820a6f47efc196f40be45c0b3099 (diff)
downloadEssentials-ce357dfb10d0fc87e58b6e2ccea7609c2b429229.tar
Essentials-ce357dfb10d0fc87e58b6e2ccea7609c2b429229.tar.gz
Essentials-ce357dfb10d0fc87e58b6e2ccea7609c2b429229.tar.lz
Essentials-ce357dfb10d0fc87e58b6e2ccea7609c2b429229.tar.xz
Essentials-ce357dfb10d0fc87e58b6e2ccea7609c2b429229.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.java2
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");
}