Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-03 14:50:19 +01:00
Don't let players change their own gamemode without permission
Fixes #3191
Dieser Commit ist enthalten in:
Ursprung
51d9320500
Commit
6856922f42
@ -1674,6 +1674,13 @@ public class GeyserSession implements GeyserConnection, CommandSender {
|
|||||||
abilities.add(Ability.INSTABUILD);
|
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 (flying || spectator) {
|
||||||
if (spectator && !flying) {
|
if (spectator && !flying) {
|
||||||
// We're "flying locked" in this gamemode
|
// We're "flying locked" in this gamemode
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren