mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-26 04:25:15 +01:00
Lets not show messages of ownership while max is in negatives
This commit is contained in:
parent
2127bd1be6
commit
7a07869131
@ -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())));
|
||||
|
Loading…
Reference in New Issue
Block a user