mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-28 18:20:31 +00:00
[trunk] Don't expect the values from yaml to be a specific number format.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1141 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
9a85c73c9f
commit
c1ac5b345f
3 changed files with 18 additions and 17 deletions
|
@ -69,7 +69,7 @@ public class Commandkit extends EssentialsCommand
|
|||
//System.out.println("Kit is timed");
|
||||
Map<String, Object> els = (Map<String, Object>)kit;
|
||||
items = (List<String>)els.get("items");
|
||||
long delay = els.containsKey("delay") ? (Integer)els.get("delay") * 1000L : 0L;
|
||||
long delay = els.containsKey("delay") ? ((Number)els.get("delay")).longValue() * 1000L : 0L;
|
||||
long time = Calendar.getInstance().getTimeInMillis();
|
||||
|
||||
Map<String, Long> kitTimes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue