1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-02-14 19:31:33 +01:00

Another fix for boosts

This commit is contained in:
montlikadani 2020-07-27 11:47:55 +02:00
parent 47d4cd1258
commit 699d6dd385

View File

@ -287,20 +287,20 @@ public class JobsPlayer {
} }
private Double getPlayerBoostNew(String JobName, CurrencyType type) { private Double getPlayerBoostNew(String JobName, CurrencyType type) {
Double v1 = Jobs.getPermissionManager().getMaxPermission(this, "jobs.boost." + JobName + "." + type.getName().toLowerCase(), true); Double v1 = Jobs.getPermissionManager().getMaxPermission(this, "jobs.boost." + JobName + "." + type.getName(), true);
Double Boost = v1; Double Boost = v1;
v1 = Jobs.getPermissionManager().getMaxPermission(this, "jobs.boost." + JobName + ".all"); v1 = Jobs.getPermissionManager().getMaxPermission(this, "jobs.boost." + JobName + ".all");
//if (v1 > Boost) if (v1 != 0d && (v1 > Boost || v1 < Boost))
// Boost = v1; Boost = v1;
v1 = Jobs.getPermissionManager().getMaxPermission(this, "jobs.boost.all.all"); v1 = Jobs.getPermissionManager().getMaxPermission(this, "jobs.boost.all.all");
//if (v1 > Boost) if (v1 != 0d && (v1 > Boost || v1 < Boost))
// Boost = v1; Boost = v1;
v1 = Jobs.getPermissionManager().getMaxPermission(this, "jobs.boost.all." + type.getName().toLowerCase()); v1 = Jobs.getPermissionManager().getMaxPermission(this, "jobs.boost.all." + type.getName());
//if (v1 > Boost) if (v1 != 0d && (v1 > Boost || v1 < Boost))
// Boost = v1; Boost = v1;
return Boost; return Boost;
} }