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