Timed permissions through PEX API (Spigot)
Dragoboss opened this issue ยท 1 comments
I have a slight question/report regarding the PEX API. For reasons I have been trying to create a command within my own plugin to grant a timed permission node to all players online at the time of execution of this command.
At first I tried to do this the obvious way, the simple way, through the dispatchCommand method built into Bukkit/Spigot/other server mods. While I have checked the command format many, many times, pex kept telling me the command syntax was wrong.
I've added a System.out.print to check whether the command was right (it was) and even manually copied the print into my console and it executed just fine... But when done through the dispatchCommand method it simply refuses to work.
(Reference: http://pastebin.com/nPWnDXJp under 'First Attempt').
I gave up on the dispatchCommand method, and instead tried to use the PEX API. I decided on the PEX native API because Vault doesn't seem to support timed permissions.
When doing this, the server returns no errors, however the timed permissions don't seem to get added to the players, so they cannot use the assigned features.
So while it executes without showing any errors, it also does basically nothing.
(Reference: http://pastebin.com/nPWnDXJp under 'Second Attempt').
With that said, I have no further clue how to implement this. The command is registered in my plugin and executes however as explained above in both cases does not wield the results it should.
Technical information:
Running Spigot 1.10
PEX 1.23.4 (both as dependency as well as running in-game)
If any other info is needed I'd be happy to provide it.