Skip to content

fix(events): a bunch of small fixes#110

Merged
applenick merged 4 commits into
PGMDev:devfrom
TTtie:fix/map-party-fixes
Jun 22, 2026
Merged

fix(events): a bunch of small fixes#110
applenick merged 4 commits into
PGMDev:devfrom
TTtie:fix/map-party-fixes

Conversation

@TTtie

@TTtie TTtie commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR addresses a few small issues that have popped up while I was playing around with /event locally.

  • The menu to add event hosts has been corrected to show people who can host events, instead of all members with the staff permission (some people eligible to host events don't have the staff permission)
  • Makes /event create and /event preset require the type name (or the preset name respectively), preventing NPEs when no arguments are supplied
  • Fixed not being able to remove event co-hosts that are online

TTtie added 4 commits June 16, 2026 04:02
Makes it so the player list in the menu is filtered by those who can host map parties (`community.event` as per MapPartyFeature) instead of `community.staff`.

Signed-off-by: TTtie <me@tttie.cz>
…event type

Creating an event using `/event create` without a type passed in throws a NPE in MapPartyFeature#create due to null event type. This commit fixes both the NPE and makes the event type required to ensure consistency between the event GUI and event commands.

Signed-off-by: TTtie <me@tttie.cz>
Makes the preset name in /event preset a required parameter as it doesn't make sense to create against a null preset.

Signed-off-by: TTtie <me@tttie.cz>
This commit fixes an issue where event hosts that were online couldn't be removed from the event host list due to them being resolved to a UUID.

This fix is suboptimal, but given that this doesn't happen often, it is probably sufficient.

Signed-off-by: TTtie <me@tttie.cz>

@applenick applenick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fixes! Thanks for looking into these.

@applenick applenick merged commit 2da00a1 into PGMDev:dev Jun 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants