mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-07-21 19:47:58 +00:00
Fix kit timers resetting on server restart.
This commit is contained in:
parent
b0552019f5
commit
2e788802fe
|
@ -817,16 +817,12 @@ public abstract class UserData extends PlayerExtension implements IConf
|
|||
|
||||
private Map<String, Object> _getKitTimestamps()
|
||||
{
|
||||
final Object map = config.getProperty("timestamps.kits");
|
||||
|
||||
if (map instanceof Map)
|
||||
|
||||
if (config.isConfigurationSection("timestamps.kits"))
|
||||
{
|
||||
return (Map<String, Object>)map;
|
||||
}
|
||||
else
|
||||
{
|
||||
return new HashMap<String, Object>();
|
||||
return config.getConfigurationSection("timestamps.kits").getValues(false);
|
||||
}
|
||||
return new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Long getKitTimestamp(final String name)
|
||||
|
|
Loading…
Reference in a new issue