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

Can't disable permissions for players #11

Open
4 tasks done
RappyTV opened this issue Oct 9, 2024 · 0 comments
Open
4 tasks done

Can't disable permissions for players #11

RappyTV opened this issue Oct 9, 2024 · 0 comments
Labels
bug Something isn't working pending This issue or pull request still needs to be looked at

Comments

@RappyTV
Copy link
Contributor

RappyTV commented Oct 9, 2024

General Troubleshooting

  • I am using the latest version of the LabyMod 4 Server API.
  • I am using the latest version of LabyMod.
  • I have checked for similar issues on the Issue-tracker.
  • I have checked for Pull Requests that might already address this issue.

Platforms

Spigot / Bukkit

Affected Minecraft Version(s)

1.20.1-1.20.4

Expected Behaviour

I expect the player not being allowed to use the tnttimer or autotext feature

Code Example for Reproduction Steps

This is in the body of a LabyModPlayerJoinEvent

if(plugin.getConfig().getBoolean("permissions.enabled")) {
    List<Permission.StatedPermission> permissions = new ArrayList<>();

    permissions.add(Permission.of("tnttimer").deny());
    permissions.add(Permission.of("chat_autotext").deny());

    labyPlayer.sendPermissions(permissions);
}

Exception or Error

N/A

Additional Information

No response

@RappyTV RappyTV added bug Something isn't working pending This issue or pull request still needs to be looked at labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending This issue or pull request still needs to be looked at
Projects
None yet
Development

No branches or pull requests

1 participant