[SPIGOT-6215] Permission problems Created: 31/Oct/20  Updated: 03/Nov/20  Resolved: 03/Nov/20

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Louis Vié Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: 1.16.3, Spigot, bug
Environment:

Windows 10

Default server properties


Version: git-Spigot-2740d5a-890130b (MC: 1.16.3)
Plugin: Amalenya-Plugin
Guidelines Read: Yes

 Description   

I'm doing a permission plugin. But when I try to set a permission to a player, the permission is true, but the player cannot use that permission.

For example, I'm enabling the minectaft.command.gamemode, I System.out.println() it and it returns me true for the player. But the command "gamemode" isnt usable for the player ingame (note that the message saying that the player doesn't have the permission isn't displayed, and the command works without the vanilla tab completer).

 Basically, the problem is that the tab completer for the commands concerned isn't working even if the player has the permission to use this command.

However, if I op the player, he can normally use all commands.

 

There is no vanilla commands restriction in my plugin.



 Comments   
Comment by Louis Vié [ 03/Nov/20 ]

Ah yes I typed the permission too quick.

I absolutly didn't know about updateCommand(), now it works, thank you!

Comment by Black Hole [ 03/Nov/20 ]

You should set the right permission. "minecraft.command.gamemode" instead of "minectaft.command.gamemode".

Also after updating permissions you should resend the commands to the client using Player.updateCommands()

Generated at Tue Apr 08 01:38:20 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.