1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

Flase if job is non existant

This commit is contained in:
Zrips 2017-01-10 16:25:02 +02:00
parent b0566f9ded
commit 14bfe9998a
4 changed files with 7 additions and 5 deletions

View File

@ -972,10 +972,10 @@ public class Jobs extends JavaPlugin {
continue;
try {
if (expAmount != 0D)
if (GconfigManager.BossBarEnabled && GconfigManager.BossBarShowOnEachAction) {
if (expAmount != 0D && GconfigManager.BossBarEnabled)
if (GconfigManager.BossBarShowOnEachAction) {
Jobs.getBBManager().ShowJobProgression(jPlayer, prog);
} else if (GconfigManager.BossBarEnabled && !GconfigManager.BossBarShowOnEachAction)
} else
jPlayer.getUpdateBossBarFor().add(prog.getJob().getName());
} catch (Exception e) {
Bukkit.getConsoleSender().sendMessage("[Jobs] Some issues with boss bar feature accured, try disabling it to avoid it.");

View File

@ -663,7 +663,7 @@ public class PlayerManager {
continue main;
}
return oneItem.getBoost().clone();
return oneItem.getBoost();
}
return bonus;

View File

@ -126,6 +126,8 @@ public class Job {
}
public boolean isSame(Job job) {
if (job == null)
return false;
return this.getName().equalsIgnoreCase(job.getName());
}

View File

@ -73,6 +73,6 @@ public class JobItems {
}
public BoostMultiplier getBoost() {
return this.boostMultiplier;
return this.boostMultiplier.clone();
}
}