1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-19 13:01:20 +02:00

forgot to return

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1204 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
ementalo
2011-04-16 00:46:53 +00:00
parent 2372be6a57
commit ed71a41578

View File

@@ -21,6 +21,7 @@ public class Commandsetworth extends EssentialsCommand
if(args.length < 2)
{
user.sendMessage("§cUsage: /" + commandLabel + " [itemname|id] [price]");
return;
}
ItemStack stack = ItemDb.get(args[0]);
Essentials.getWorth().setPrice(Integer.toString(stack.getTypeId()), Integer.parseInt(args[1]));