Admin Set Owner Command calls owner change event too late #1349
Labels
Status: Done
This issue has been completed or answered. This pull request has been merged.
Type: Bug
Milestone
Description
Describe the bug
By the description of the event and usage in command that is available for users,
TeamEvent.Reason.SETOWNER
event should be called before the owner is changed. Currently, in admin command, it is called after the owner is assigned.Expected behavior
Set owner and message about successful assignments should be done after the event.
BentoBox/src/main/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamSetownerCommand.java
Lines 61 to 72 in de124ab
BentoBox Version (Mandatory)
Additional context (Optional)
This comes from the discord support channel, however, the requested bug report was never created.
The text was updated successfully, but these errors were encountered: