mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
Lets update boosts based by permission each time using info command
This commit is contained in:
parent
9d8c9532c1
commit
bd0f124031
@ -426,7 +426,7 @@ public class JobsCommands implements CommandExecutor {
|
||||
public static String jobInfoMessage(JobsPlayer player, Job job, ActionType type) {
|
||||
|
||||
// money exp boost
|
||||
Boost boost = Jobs.getPlayerManager().getFinalBonus(player, job);
|
||||
Boost boost = Jobs.getPlayerManager().getFinalBonus(player, job, true);
|
||||
|
||||
StringBuilder message = new StringBuilder();
|
||||
|
||||
|
@ -938,8 +938,7 @@ public class GeneralConfigManager {
|
||||
guiBackButton = tmat == null ? CMIMaterial.JACK_O_LANTERN.newItemStack() : tmat.newItemStack();
|
||||
|
||||
tmat = CMIMaterial.get(c.get("JobsGUI.Filler.Material", "STAINED_GLASS_PANE"));
|
||||
Debug.D(c.get("JobsGUI.Filler.Material", "STAINED_GLASS_PANE"));
|
||||
Debug.D( CMIMaterial.get(c.get("JobsGUI.Filler.Material", "STAINED_GLASS_PANE")));
|
||||
|
||||
guiFiller = tmat == null ? CMIMaterial.GREEN_STAINED_GLASS_PANE.newItemStack() : tmat.newItemStack();
|
||||
ItemMeta meta = guiFiller.getItemMeta();
|
||||
meta.setDisplayName(" ");
|
||||
|
@ -34,6 +34,7 @@ import com.gamingmesh.jobs.dao.JobsDAO;
|
||||
import com.gamingmesh.jobs.economy.PaymentData;
|
||||
import com.gamingmesh.jobs.resources.jfep.Parser;
|
||||
import com.gamingmesh.jobs.stuff.ChatColor;
|
||||
import com.gamingmesh.jobs.stuff.Debug;
|
||||
import com.gamingmesh.jobs.stuff.FurnaceBrewingHandling;
|
||||
import com.gamingmesh.jobs.stuff.Perm;
|
||||
import com.gamingmesh.jobs.stuff.TimeManage;
|
||||
@ -242,7 +243,7 @@ public class JobsPlayer {
|
||||
|
||||
ArrayList<BoostCounter> counterList = new ArrayList<>();
|
||||
counterList.add(new BoostCounter(type, Boost, time));
|
||||
|
||||
|
||||
boostCounter.put(JobName, counterList);
|
||||
return Boost;
|
||||
}
|
||||
@ -260,6 +261,7 @@ public class JobsPlayer {
|
||||
v1 = Jobs.getPermissionManager().getMaxPermission(this, "jobs.boost.all." + type.getName().toLowerCase());
|
||||
if (Boost == null || v1 != null && v1 > Boost)
|
||||
Boost = v1;
|
||||
Debug.D(Boost +" "+ JobName + " " + type);
|
||||
return Boost == null ? 0D : Boost;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user