Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_player_privs footguns #49

Open
appgurueu opened this issue Oct 11, 2022 · 0 comments
Open

set_player_privs footguns #49

appgurueu opened this issue Oct 11, 2022 · 0 comments
Labels
Content Alterations or additions to written content Lua API Lua API documentation

Comments

@appgurueu
Copy link
Contributor

Both of these warrant a DANGER admonition:

  1. Attempting to use set_player_privs incrementally by doing just minetest.set_player_privs(name, {my_priv = true}) and expecting it to grant my_priv (whereas in reality it revokes all privs except for my_priv)
  2. Attempting to use set_player_privs as if a boolean false value was treated as revoking a priv (whereas the privs are a set and thus this is treated as granting the priv): privs.my_priv = false; minetest.set_player_privs(name, privs)

@rollerozxa is being assigned for heretic variable naming inherited from a poorly written Sudoku game.

@rollerozxa rollerozxa removed their assignment Jul 21, 2023
@wsor4035 wsor4035 transferred this issue from minetest/minetest_docs Dec 15, 2024
@JosiahWI JosiahWI added Content Alterations or additions to written content Lua API Lua API documentation labels Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content Alterations or additions to written content Lua API Lua API documentation
Projects
None yet
Development

No branches or pull requests

3 participants