mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-12-23 15:00:37 +01:00
Don't let players change their own gamemode without permission
Fixes #3191
This commit is contained in:
parent
51d9320500
commit
6856922f42
1 changed files with 7 additions and 0 deletions
|
@ -1674,6 +1674,13 @@ public class GeyserSession implements GeyserConnection, CommandSender {
|
|||
abilities.add(Ability.INSTABUILD);
|
||||
}
|
||||
|
||||
if (commandPermission == CommandPermission.OPERATOR) {
|
||||
// Fixes a bug? since 1.19.11 where the player can change their gamemode in Bedrock settings and
|
||||
// a packet is not sent to the server.
|
||||
// https://github.com/GeyserMC/Geyser/issues/3191
|
||||
abilities.add(Ability.OPERATOR_COMMANDS);
|
||||
}
|
||||
|
||||
if (flying || spectator) {
|
||||
if (spectator && !flying) {
|
||||
// We're "flying locked" in this gamemode
|
||||
|
|
Loading…
Reference in a new issue