From 7a0786913174107195f65a2ec399c73d2983830f Mon Sep 17 00:00:00 2001 From: Zrips Date: Wed, 1 Sep 2021 18:46:50 +0300 Subject: [PATCH] Lets not show messages of ownership while max is in negatives --- .../java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java index 5aacf280..e9fc165d 100644 --- a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java +++ b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java @@ -1655,7 +1655,7 @@ public final class JobsPaymentListener implements Listener { if (report) CMIActionBar.send(p, Jobs.getLanguage().getMessage("general.error.noRegistration", "[block]", name)); - } else if (done == ownershipFeedback.newReg && jPlayer != null) { + } else if (done == ownershipFeedback.newReg && jPlayer != null && jPlayer.getMaxOwnerShipAllowed(blockOwner.getType()) > 0) { CMIActionBar.send(p, Jobs.getLanguage().getMessage("general.error.newRegistration", "[block]", name, "[current]", blockOwner.getTotal(jPlayer.getUniqueId()), "[max]", jPlayer.getMaxOwnerShipAllowed(blockOwner.getType()) == 0 ? "-" : jPlayer.getMaxOwnerShipAllowed(blockOwner.getType())));