1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-15 11:04:29 +02:00

[trunk] /setworth: support double

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1227 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo
2011-04-16 15:36:37 +00:00
parent 76b4a5e8ac
commit 1d947652d5

View File

@@ -23,7 +23,7 @@ public class Commandsetworth extends EssentialsCommand
return; return;
} }
ItemStack stack = ItemDb.get(args[0]); ItemStack stack = ItemDb.get(args[0]);
Essentials.getWorth().setPrice(stack, Integer.parseInt(args[1])); Essentials.getWorth().setPrice(stack, Double.parseDouble(args[1]));
user.charge(this); user.charge(this);
user.sendMessage("§7Worth value set"); user.sendMessage("§7Worth value set");
} }