Skript

Skript

743k Downloads

All Permissions expression issue when using a Function

sluhtie opened this issue ยท 7 comments

commented

Skript/Server Version

[23:00:34 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[23:00:34 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[23:00:34 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[23:00:34 INFO]: [Skript] Server Version: 1.21.1-16-a9e9d99 (MC: 1.21.1)
[23:00:34 INFO]: [Skript] Skript Version: 2.9.2 (skriptlang-github)
[23:00:34 INFO]: [Skript] Installed Skript Addons:
[23:00:34 INFO]: [Skript]  - skript-placeholders v1.6.0 (https://github.com/APickledWalrus/skript-placeholders)
[23:00:34 INFO]: [Skript]  - skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui)
[23:00:34 INFO]: [Skript]  - SkUniversal v2.13
[23:00:34 INFO]: [Skript]  - DiSky v4.18.0
[23:00:34 INFO]: [Skript]  - Skuishy v2.7 (https://aabss.cc)
[23:00:34 INFO]: [Skript]  - skript-reflect v2.5.1 (https://github.com/SkriptLang/skript-reflect)
[23:00:34 INFO]: [Skript]  - SkBee v3.6.0 (https://github.com/ShaneBeee/SkBee)
[23:00:34 INFO]: [Skript]  - skript-oraxen v1.0
[23:00:34 INFO]: [Skript] Installed dependencies:
[23:00:34 INFO]: [Skript]  - Vault v1.7.3-b131

Bug Description

When using the all permissions expression inside of a function it appears to broadcast all available permissions on the Server, and not just the ones of the given player.

Expected Behavior

Return only the permissions the player has access to.

Steps to Reproduce

Heres a little example code:

# Returns only the player's permission
command /perms <player>:
    trigger:
        send all permissions of arg-1

# Returns all permissions existing
function getAllPerms(p: player):
    broadcast all permissions of {_p}

Errors or Screenshots

No response

Other

I am aware that the all permissions of player only functions on online players.
For permission plugin, I am using LuckPerms v5.4.137

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
commented

couldn't replicate on Skript 2.9.1 and a fresh installation of LuckPerms 5.4.141

whether the player was op it only showed the permissions that was set for the player/group.

I used the code you sent.

commented

Player was set into default group and deoped. Now tested also with a fresh account that never joined the Server before. Still happens to me. I had Skript 2.9.1 before but I updated hoping it would have been fixed. But the Issue remained.

commented

Player was set into default group and deoped. Now tested also with a fresh account that never joined the Server before. Still happens to me.

make sure the permission is "unset" and not set to false
false permissions still appear in the expression

commented

Yea well the new acc doesent have any perms at all and was never opped before. The default group does not have any administrative permissions. Only other guess is that some other addon manipulates it

commented

Can you try a test with no addons and no plugins? (Aside from LuckPerms)

commented

Okay tried it with a band new 1.21.1 Server with Skript 2.9.2 and LP v5.4.141. Seems to work.. I guess its some addon then causing this Issue.

commented

I removed each plugin individually and tested after every addon. The Issue has been caused by an Addon named "Skuishy". This can be fixed by setting permission-elements: false in Skuishys config and restarting the Server.