Skip to content

Fix: Add permission check for fly on gamemode change#64

Open
MeinLiX wants to merge 2 commits intoStrafbefehl:devfrom
MeinLiX:fix/fly-permission-check
Open

Fix: Add permission check for fly on gamemode change#64
MeinLiX wants to merge 2 commits intoStrafbefehl:devfrom
MeinLiX:fix/fly-permission-check

Conversation

@MeinLiX
Copy link

@MeinLiX MeinLiX commented Oct 6, 2025

  • Added a permission check for "deluxehub.command.fly" before enabling flight for players in Adventure or Survival gamemodes in GamemodeAction.java.

P.S: If needed, this can be moved to a separate configuration file.

@MeinLiX MeinLiX marked this pull request as draft October 6, 2025 20:52
@MeinLiX
Copy link
Author

MeinLiX commented Oct 6, 2025

If a user enters builder mode, they are able to fly. However, when the builder permissions are removed, the user can still fly until they reconnect to the server.

@MeinLiX MeinLiX marked this pull request as ready for review October 6, 2025 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant