[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:
snowleo 2011-04-06 10:32:59 +00:00
parent 9a85c73c9f
commit c1ac5b345f
3 changed files with 18 additions and 17 deletions

View file

@ -123,12 +123,12 @@ public class Settings implements IConf
public long getTeleportCooldown()
{
return (long)config.getInt("teleport-cooldown", 60) * 1000L;
return ((Number)config.getInt("teleport-cooldown", 60)).longValue() * 1000L;
}
public long getHealCooldown()
{
return (long)config.getInt("heal-cooldown", 60) * 1000L;
return ((Number)config.getInt("heal-cooldown", 60)).longValue() * 1000L;
}
public Object getKit(String name)