mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-31 04:21:35 +01: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:
parent
2372be6a57
commit
ed71a41578
@ -21,6 +21,7 @@ public class Commandsetworth extends EssentialsCommand
|
|||||||
if(args.length < 2)
|
if(args.length < 2)
|
||||||
{
|
{
|
||||||
user.sendMessage("§cUsage: /" + commandLabel + " [itemname|id] [price]");
|
user.sendMessage("§cUsage: /" + commandLabel + " [itemname|id] [price]");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
ItemStack stack = ItemDb.get(args[0]);
|
ItemStack stack = ItemDb.get(args[0]);
|
||||||
Essentials.getWorth().setPrice(Integer.toString(stack.getTypeId()), Integer.parseInt(args[1]));
|
Essentials.getWorth().setPrice(Integer.toString(stack.getTypeId()), Integer.parseInt(args[1]));
|
||||||
|
Loading…
Reference in New Issue
Block a user