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() {
if (boosConfigManager.getClearOnRestart() == true) {
boosCoolDownManager.clear();
log.info("[" + pdfFile.getName() + "]" + " cooldowns cleared!");
} else {
boosCoolDownManager.save();
log.info("[" + pdfFile.getName() + "]" + " cooldowns saved!");
}
log.info("[" + pdfFile.getName() + "]" + " version "
+ pdfFile.getVersion() + " disabled!");

View File

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

View File

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