Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ===================================================================================================================================
- public static void startCooldownTask()
- {
- new BukkitRunnable()
- {
- public void run()
- {
- for (Iterator i$ = ConfigMgr.playerData.getKeys(false).iterator(); i$.hasNext();)
- {
- uuid = (String)i$.next();
- for (String cooldown : ConfigMgr.playerData.getConfigurationSection(uuid + ".cooldowns").getKeys(false))
- {
- String path = uuid + ".cooldowns." + cooldown;
- if (ConfigMgr.playerData.getLong(path) != 0L)
- {
- ConfigMgr.playerData.set(path, Long.valueOf(ConfigMgr.playerData.getLong(path) - 1L));
- if (ConfigMgr.playerData.getLong(path) == 0L)
- {
- rewardPath = "rewards." + cooldown;
- Set<String> event = ConfigMgr.config.getConfigurationSection(rewardPath + ".expiry-events").getKeys(false);
- ===================================================================================================================================
- public static void startCooldownTask() {
- new BukkitRunnable() {
- @Override
- public void run() {
- for (String uuid : ConfigMgr.playerData.getKeys(false)) {
- for (String cooldown : ConfigMgr.playerData.getConfigurationSection(uuid + ".cooldowns").getKeys(false)) {
- String path = uuid + ".cooldowns." + cooldown;
- if (ConfigMgr.playerData.getLong(path) == 0) {
- continue;
- }
- ConfigMgr.playerData.set(path, ConfigMgr.playerData.getLong(path) - 1);
- if (ConfigMgr.playerData.getLong(path) != 0) {
- continue;
- }
- String rewardPath = "rewards." + cooldown;
- Set<String> event = ConfigMgr.config.getConfigurationSection(rewardPath + ".expiry-events").getKeys(false);
- ===================================================================================================================================
Advertisement
Add Comment
Please, Sign In to add comment