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:
parent
b0566f9ded
commit
14bfe9998a
@ -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.");
|
||||
|
@ -663,7 +663,7 @@ public class PlayerManager {
|
||||
continue main;
|
||||
}
|
||||
|
||||
return oneItem.getBoost().clone();
|
||||
return oneItem.getBoost();
|
||||
}
|
||||
|
||||
return bonus;
|
||||
|
@ -126,6 +126,8 @@ public class Job {
|
||||
}
|
||||
|
||||
public boolean isSame(Job job) {
|
||||
if (job == null)
|
||||
return false;
|
||||
return this.getName().equalsIgnoreCase(job.getName());
|
||||
}
|
||||
|
||||
|
@ -73,6 +73,6 @@ public class JobItems {
|
||||
}
|
||||
|
||||
public BoostMultiplier getBoost() {
|
||||
return this.boostMultiplier;
|
||||
return this.boostMultiplier.clone();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user