mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
Merge pull request #1520 from smuddgge/master
Jobs fishing listener MCMMO fix
This commit is contained in:
commit
c4ecee7840
@ -543,7 +543,7 @@ public final class JobsPaymentListener implements Listener {
|
|||||||
|
|
||||||
// check is the fishing being exploited. If yes, prevent payment.
|
// check is the fishing being exploited. If yes, prevent payment.
|
||||||
if (mcMMOPlayer != null && ExperienceConfig.getInstance().isFishingExploitingPrevented()
|
if (mcMMOPlayer != null && ExperienceConfig.getInstance().isFishingExploitingPrevented()
|
||||||
&& mcMMOPlayer.getFishingManager().isExploitingFishing(event.getHook().getLocation().toVector())) {
|
&& mcMMOPlayer.getFishingManager().isFishingTooOften()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user