1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-06 22:56:41 +02:00

Fix kit timers resetting on server restart.

This commit is contained in:
KHobbits
2012-03-01 22:04:50 +00:00
parent fd343fba0b
commit a4751e9781

View File

@@ -817,16 +817,12 @@ public abstract class UserData extends PlayerExtension implements IConf
private Map<String, Object> _getKitTimestamps() private Map<String, Object> _getKitTimestamps()
{ {
final Object map = config.getProperty("timestamps.kits");
if (config.isConfigurationSection("timestamps.kits"))
if (map instanceof Map)
{ {
return (Map<String, Object>)map; return config.getConfigurationSection("timestamps.kits").getValues(false);
}
else
{
return new HashMap<String, Object>();
} }
return new HashMap<String, Object>();
} }
public Long getKitTimestamp(final String name) public Long getKitTimestamp(final String name)