1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 04:25:15 +01:00

IgnoreMaxJobs integrated into join command

This commit is contained in:
LogGitDev 2021-05-05 04:52:23 +10:00 committed by GitHub
parent 14de3d35b4
commit beaf423e00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ public class join implements Cmd {
return true; return true;
} }
if (!Jobs.getPlayerManager().getJobsLimit(jPlayer, (short) jPlayer.progression.size())) { if (!job.isIgnoreMaxJobs() && !Jobs.getPlayerManager().getJobsLimit(jPlayer, (short) jPlayer.progression.size())) {
pSender.sendMessage(Jobs.getLanguage().getMessage("command.join.error.maxjobs")); pSender.sendMessage(Jobs.getLanguage().getMessage("command.join.error.maxjobs"));
return true; return true;
} }