[SPIGOT-2323] Event Handler JD for ignoreCancled describes logic backwards for boolean value Created: 27/May/16 Updated: 11/Dec/17 Resolved: 27/May/16 |
|
Status: | Closed |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Sycholic | Assignee: | Unassigned |
Resolution: | Cannot Reproduce | Votes: | 0 |
Labels: | EventHandler, Javadocs, ignoreCancelled |
Description |
public abstract boolean ignoreCancelled If you are ignoring the cancel then true would mean it ignores it, not allow it to be cancelled still. |
Comments |
Comment by Black Hole [ 28/May/16 ] |
I think you don't undersstand the event concept of calling multiple event handles in order. Some of these events could cancel a cancellable event or the event even could be cancelled before calling the first event handler. Have a look at http://wiki.bukkit.org/Event_API_Reference |
Comment by Sycholic [ 28/May/16 ] |
then I guess "the method is not called" means it is not being cancelled even though it flat out says your event method is not called... |
Comment by Black Hole [ 27/May/16 ] |
The JavaDoc is specifying the behaviour correctly: Setting "ignoreCancelled" to true means your event handler is ignoring cancelled events. |