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:
@@ -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");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user