mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-14 12:11:34 +01:00
This needs to be here. Fix for BP with -1 payments
This commit is contained in:
parent
8282af2242
commit
0c0c0ff9ba
@ -1047,9 +1047,8 @@ public final class Jobs extends JavaPlugin {
|
|||||||
List<JobProgression> progression = jPlayer.getJobProgression();
|
List<JobProgression> progression = jPlayer.getJobProgression();
|
||||||
int numjobs = progression.size();
|
int numjobs = progression.size();
|
||||||
|
|
||||||
if (!Jobs.getGCManager().useBlockProtectionBlockTracker && !Jobs.getExploitManager().isProtectionValidAddIfNotExists(jPlayer, info, block, true)) {
|
if (!Jobs.getGCManager().useBlockProtectionBlockTracker && !Jobs.getExploitManager().isProtectionValidAddIfNotExists(jPlayer, info, block, true))
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
// no job
|
// no job
|
||||||
if (numjobs == 0) {
|
if (numjobs == 0) {
|
||||||
|
@ -284,6 +284,11 @@ public class ExploitProtectionManager {
|
|||||||
if (exploitProtection.getProtectedUntil() != 0) {
|
if (exploitProtection.getProtectedUntil() != 0) {
|
||||||
long time = exploitProtection.getProtectedUntil();
|
long time = exploitProtection.getProtectedUntil();
|
||||||
|
|
||||||
|
if (time == -1L) {
|
||||||
|
remove(block);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (time < System.currentTimeMillis()) {
|
if (time < System.currentTimeMillis()) {
|
||||||
remove(block);
|
remove(block);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user