OldCombatMechanics

OldCombatMechanics

46.1k Downloads

Fishing rod knockback in WorldGuard regions

martijnpu opened this issue ยท 6 comments

commented

Information

  • Server Version: Paper 1.16.5

  • OldCombatMechanics version: 1.9.0

  • Server Log File: Not needed

  • OldCombatMechanics config file: https://pastebin.com/YidMYS52

Problem Description

When old-fishing-knockback: is true it don't respect WorldGuard pvp-deny: true.

To Reproduce

  1. set old-fishing-knockback: true
  2. enter a region with WG pvp-deny: true
  3. you can push other players with a fishing rod

Expected Behaviour

Disable knockback of the fishing rod

Actual Behaviour

Players can be knocked (out of the region) where pvp is disabled

commented

Do you mean that it does the damage, or that it pulls people when reeling in?

commented

Do you mean that it does the damage, or that it pulls people when reeling in?

It pulls people.
When disabling PvP in WG the 'new' fishing rod knockback is disabled, but when using OldCombatMechenics it pushes people. This means players can knock others out of the safezones.

commented

Just set checkCancelled to true.

commented

This is not really a solution, but I fixed it with coding a separate plugin. Still thank you.

commented

Hello, I have the same problem.
I'm using the "useEntityDamageEvent: true" setting, but with this, player can hit other players in the worldguard protected region.
Disabling the setting "fix" this problem, but create a extra problem for me from other plugins.

Can you please fix the plugin? Maybe moving this line before triggering the damage event:

if(module().getBoolean("checkCancelled") && event.isCancelled()){

Regards
ludgart

commented

Hello, I have the same problem.
I'm using the "useEntityDamageEvent: true" setting, but with this, player can hit other players in the worldguard protected region.
Disabling the setting "fix" this problem, but create a extra problem for me from other plugins.

Can you please fix the plugin? Maybe moving this line before triggering the damage event:

if(module().getBoolean("checkCancelled") && event.isCancelled()){

Regards
ludgart

What line are you on about?