1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-01 15:03:36 +01:00

fix Explore task not work

This commit is contained in:
ken-kentan 2017-11-01 10:13:02 +09:00
parent 262c250cbe
commit c6b0659590

View File

@ -1332,14 +1332,13 @@ public class JobsPaymentListener implements Listener {
Player player = event.getPlayer();
if (!Jobs.getGCManager().payExploringWhenFlying())
if (!Jobs.getGCManager().payExploringWhenFlying() && player.isFlying())
return;
ExploreRespond respond = Jobs.getExplore().ChunkRespond(event.getPlayer(), event.getNewChunk(), true);
if (!respond.isNewChunk())
return;
// make sure plugin is enabled
if (!this.plugin.isEnabled())
return;