mirror of
https://github.com/LordBoos/boosCooldowns.git
synced 2024-11-26 20:48: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() {
|
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!");
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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: >
|
||||||
|
Loading…
Reference in New Issue
Block a user