mirror of
https://github.com/LordBoos/boosCooldowns.git
synced 2024-11-23 02:55:11 +01:00
fixed cooldown saving
This commit is contained in:
parent
287f5e3707
commit
376c96ebd7
@ -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!");
|
||||
|
@ -59,6 +59,7 @@ public class boosCoolDownManager {
|
||||
static void save() {
|
||||
try {
|
||||
confFile.createNewFile();
|
||||
confusers.save(confFile);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
@ -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: >
|
||||
|
Loading…
Reference in New Issue
Block a user