|
@@ -718,7 +718,8 @@ public class PlayerListener implements Listener {
|
|
//Spam Fishing Detection
|
|
//Spam Fishing Detection
|
|
if(event.getAction() == Action.RIGHT_CLICK_BLOCK || event.getAction() == Action.RIGHT_CLICK_AIR)
|
|
if(event.getAction() == Action.RIGHT_CLICK_BLOCK || event.getAction() == Action.RIGHT_CLICK_AIR)
|
|
{
|
|
{
|
|
- if(heldItem.getType() == Material.FISHING_ROD || player.getInventory().getItemInOffHand().getType() == Material.FISHING_ROD)
|
|
|
|
|
|
+ if(ExperienceConfig.getInstance().isFishingExploitingPrevented()
|
|
|
|
+ && (heldItem.getType() == Material.FISHING_ROD || player.getInventory().getItemInOffHand().getType() == Material.FISHING_ROD))
|
|
{
|
|
{
|
|
if(player.isInsideVehicle() && (player.getVehicle() instanceof Minecart || player.getVehicle() instanceof PoweredMinecart))
|
|
if(player.isInsideVehicle() && (player.getVehicle() instanceof Minecart || player.getVehicle() instanceof PoweredMinecart))
|
|
{
|
|
{
|