This commit is contained in:
lordboos 2011-07-26 16:14:06 +00:00
parent b45eb7c9c5
commit 01be0c7e7f
2 changed files with 9 additions and 9 deletions

View File

@ -37,16 +37,16 @@ public class boosCoolDown extends JavaPlugin {
PluginDescriptionFile pdfFile = this.getDescription();
log.info("[" + pdfFile.getName() + "]" + " version " + pdfFile.getVersion() + " by " + pdfFile.getAuthors() + " is enabled!");
boosConfigManager bConfigManager = new boosConfigManager(this);
bConfigManager.load();
conf = bConfigManager.conf;
boosCoolDownManager bCoolDownManager = new boosCoolDownManager(this);
bCoolDownManager.load();
if (bConfigManager.getClearOnRestart() == true) {
bCoolDownManager.clear();
boosConfigManager boosConfigManager = new boosConfigManager(this);
boosConfigManager.load();
conf = boosConfigManager.conf;
boosCoolDownManager boosCoolDownManager = new boosCoolDownManager(this);
boosCoolDownManager.load();
if (boosConfigManager.getClearOnRestart() == true) {
boosCoolDownManager.clear();
} else {
}
confusers = bCoolDownManager.confusers;
confusers = boosCoolDownManager.confusers;
if (setupPermissions()) {
}

View File

@ -26,7 +26,7 @@ public class boosCoolDownPlayerListener extends PlayerListener {
on = false;
}
if(boosCoolDown.permissions){
if(cz.boosik.boosCooldown.boosCoolDown.Permissions.permission(player, "bCoolDown.exception") || player.isOp()) {
if(cz.boosik.boosCooldown.boosCoolDown.Permissions.permission(player, "boosCoolDown.exception") || player.isOp()) {
on = false;
} else {
on = true;