OldCombatMechanics

OldCombatMechanics

46.1k Downloads

Gapple Cooldown issue

OpvpYT opened this issue ยท 10 comments

commented

OldCombatMechanics break the cancel event of all GoldenApple cooldowns plugins.
Only when old-gapple is enabled in config, there is no way to use a plugin to cancel the eat event.

This bug is on the latest version of OCM and I tested it on paper 1.11.2 and 1.12.2.

Problem Description

OldCombatMechanics break the cancel event of all GoldenApple cooldowns plugins.
Only when old-gapple is enabled in config, there is no way to use a plugin to cancel the eat event.

This bug is on the latest version of OCM and I tested it on paper 1.11.2 and 1.12.2.

commented

OCM should probably either listen on HIGH/HIGHEST and respect the cancel status of the event or do not modify the consume event at all (listen on monitor) and just overwrite the effects a tick later.

The first solution is probably nicer, the second is tad more compatible. Though a cooldown plugin really ought to listen on a low priority so I'd expect the first change (just an isCancelled check) to be enough.

commented

@I-Al-Istannen OCM already listens on HIGH, I'll just add a check to not do anything if the event is already cancelled.

commented

@OpvpYT Please try if test build 63 fixes the issue, I have set OCM to ignore the event if it has already been cancelled.

commented

It seems not working for me...

Tried using Highest priority and cancel it, nothing to do :/

commented

Still having the same problem in LOW priority.

commented

@Lucas2107 are you cancelling the event, or modifying it?

commented

@Lucas2107 if you're making a cooldown plugin, it should probably be on low priority. Highest would mean it runs after OCM has already done its thing on high.

commented

My bad. I will try it...

commented

cancelling

commented

From commit c9a1344 OCM allows customising the gapple cooldown. If this is still a problem then please open an issue as an incompatibility with a specific plugin.