Skip to content

Commit

Permalink
- Add ignoreCancelled=true to onPlayerTakeLecternBookEvent to prevent
Browse files Browse the repository at this point in the history
Towny overriding plugins who've already stopped taking a book.
    - Closes #3894.
  • Loading branch information
LlmDl committed Apr 9, 2020
1 parent 7cccef6 commit d4b0cb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion resources/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4434,4 +4434,6 @@ v0.92.0.11:
- Closes #3814.
- Remove /town unclaim outpost from /town unclaim ?
- Add /ta unclaim & /plot unclaim tab completes.
- Closes #3883.
- Closes #3883.
- Add ignoreCancelled=true to onPlayerTakeLecternBookEvent to prevent Towny overriding plugins who've already stopped taking a book.
- Closes #3894.
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ public void onPlayerLeaveTown(PlayerLeaveTownEvent event) throws TownyException
* Any player that can break the lectern will be able to get the book anyways.
* @param event - PlayerTakeLecternBookEvent
*/
@EventHandler(priority = EventPriority.HIGHEST)
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
public void onPlayerTakeLecternBookEvent(PlayerTakeLecternBookEvent event) {

if (plugin.isError()) {
Expand Down

0 comments on commit d4b0cb1

Please sign in to comment.