Commit 2da00a1
authored
fix(events): a bunch of small fixes (#110)
* fix(HostAddMenu): filter players by correct permission
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 <[email protected]>
* fix(events): require event type for `/event create`, fix NPE on null 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 <[email protected]>
* fix(events): require preset name for `/event preset`
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 <[email protected]>
* fix(events): allow removing online event hosts
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 <[email protected]>
---------
Signed-off-by: TTtie <[email protected]>1 parent d308674 commit 2da00a1
4 files changed
Lines changed: 6 additions & 4 deletions
File tree
- core/src/main/java/dev/pgm/community/party
- feature
- hosts
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments