mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-27 07:52:06 +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
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue