[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 2571d31cb0
commit aabf820910

View File

@ -23,7 +23,7 @@ public class Commandsetworth extends EssentialsCommand
return;
}
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.sendMessage("§7Worth value set");
}