Skip to content

Commit

Permalink
- API: Add town-changing-mayor events.
Browse files Browse the repository at this point in the history
    - Alters the TownMayorChangeEvent to include a getCommandSender.
    - Add TownMayorChangedEvent which is not cancellable, alerts plugins
of any change in mayor.
    - Add TownMayorChosenBySuccessionEvent which allows a plugin to
determine who will become mayor when Towny automatically chooses a
mayor.
    - Closes #6607.
  • Loading branch information
LlmDl committed Apr 14, 2023
1 parent cc99299 commit 046ecb2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion resources/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8542,4 +8542,9 @@ v0.92.0.11:
- Bump adventure-text-minimessage from 4.13.0 to 4.13.1.
0.99.0.2:
- Add nations that enemy your nation to the /n enemylist output.
- Prevent 0 dollar amounts being withdrawn/deposited from town and nation banks.
- Prevent 0 dollar amounts being withdrawn/deposited from town and nation banks.
- API: Add town-changing-mayor events.
- Alters the TownMayorChangeEvent to include a getCommandSender.
- Add TownMayorChangedEvent which is not cancellable, alerts plugins of any change in mayor.
- Add TownMayorChosenBySuccessionEvent which allows a plugin to determine who will become mayor when Towny automatically chooses a mayor.
- Closes #6607.

0 comments on commit 046ecb2

Please sign in to comment.