mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-26 04:25:15 +01:00
Fix for log stripping
This commit is contained in:
parent
7544eea2ac
commit
3637c77f42
@ -1581,6 +1581,9 @@ public class JobsPaymentListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onPlayerInteract(PlayerInteractEvent event) {
|
||||
if (event.isCancelled())
|
||||
return;
|
||||
|
||||
Player p = event.getPlayer();
|
||||
if (!Jobs.getGCManager().canPerformActionInWorld(p.getWorld()))
|
||||
return;
|
||||
@ -1653,7 +1656,7 @@ public class JobsPaymentListener implements Listener {
|
||||
"[max]", jPlayer.getMaxOwnerShipAllowed(blockOwner.getType()) == 0 ? "-" : jPlayer.getMaxOwnerShipAllowed(blockOwner.getType())));
|
||||
}
|
||||
} else if (Version.isCurrentEqualOrHigher(Version.v1_13_R1) &&
|
||||
block.getType().toString().startsWith("STRIPPED_") &&
|
||||
!block.getType().toString().startsWith("STRIPPED_") && block.getType().toString().endsWith("_LOG") &&
|
||||
event.getAction() == Action.RIGHT_CLICK_BLOCK && jPlayer != null && hand.toString().endsWith("_AXE")) {
|
||||
// check if player is riding
|
||||
if (Jobs.getGCManager().disablePaymentIfRiding && p.isInsideVehicle())
|
||||
|
Loading…
Reference in New Issue
Block a user