fixed cooldown saving

This commit is contained in:
Boos 2012-03-14 11:42:34 +01:00
parent 287f5e3707
commit 376c96ebd7
3 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,10 @@ public class boosCoolDown extends JavaPlugin {
public void onDisable() { public void onDisable() {
if (boosConfigManager.getClearOnRestart() == true) { if (boosConfigManager.getClearOnRestart() == true) {
boosCoolDownManager.clear(); boosCoolDownManager.clear();
log.info("[" + pdfFile.getName() + "]" + " cooldowns cleared!");
} else { } else {
boosCoolDownManager.save();
log.info("[" + pdfFile.getName() + "]" + " cooldowns saved!");
} }
log.info("[" + pdfFile.getName() + "]" + " version " log.info("[" + pdfFile.getName() + "]" + " version "
+ pdfFile.getVersion() + " disabled!"); + pdfFile.getVersion() + " disabled!");

View File

@ -59,6 +59,7 @@ public class boosCoolDownManager {
static void save() { static void save() {
try { try {
confFile.createNewFile(); confFile.createNewFile();
confusers.save(confFile);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }

View File

@ -1,6 +1,6 @@
name: boosCooldown name: boosCooldown
main: cz.boosik.boosCooldown.boosCoolDown main: cz.boosik.boosCooldown.boosCoolDown
version: 2.1.3 beta version: 2.1.4 beta
author: boosik author: boosik
softdepend: [Vault,PermissionsEX] softdepend: [Vault,PermissionsEX]
description: > description: >