Solved I had a problem with TuSKe GUIs and Permissions

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Aidanete

Active Member
Apr 11, 2017
139
10
0
A day ago, I tried to use LuckPerms for my server, and was very cool and worked fine, anyway, I had a problem that when you execute a command from a TuSKe GUI when deopped, also when you have the permission to execute that command, it will not work, also I tried to use the command in chat and, it worked well but in GUIs no.

Any way to fix this?

Thank you for the help

Skript version: The last from a week ago, dev36
TuSKe version: v1.8.2
Minecraft version: v1.12.2
LuckPerms version: I downloaded 3 days ago, too much further I think it will not go (v4.2.17)
 
A day ago, I tried to use LuckPerms for my server, and was very cool and worked fine, anyway, I had a problem that when you execute a command from a TuSKe GUI when deopped, also when you have the permission to execute that command, it will not work, also I tried to use the command in chat and, it worked well but in GUIs no.

Any way to fix this?

Thank you for the help

Skript version: The last from a week ago, dev36
TuSKe version: v1.8.2
Minecraft version: v1.12.2
LuckPerms version: I downloaded 3 days ago, too much further I think it will not go (v4.2.17)
You are going to have to show your code. Its really hard to help you out when we have no code to work with
 
You are going to have to show your code. Its really hard to help you out when we have no code to work with

This is the code for the gui:
code_language.skript:
player is holding a book named "<yellow><bold>Game selector":
        open virtual chest inventory with size 6 named "<dark blue><bold>Game Selector" to the player
        set {_item} to bookshelf named "<gold><bold>Main Lobby"
        set line 1 of lore of {_item} to "<gray>Click here to return to"
        set line 2 of lore of {_item} to "<gray>the main lobby"
        format gui slot 45 of player with {_item} to run player command "/lobby"
        set {_item} to emerald named "<lime><bold>Profile"
        set line 1 of lore of {_item} to "<gray>See your stats and modify"
        set line 2 of lore of {_item} to "<gray>your preferences"
        format gui slot 46 of player with {_item} to close
        set {_item} to bow named "<lime>SkyWars"
        set line 1 of lore of {_item} to "<gray>Start a full battle in the sky wether the"
        set line 2 of lore of {_item} to "<gray>last man standing wins"
        set line 4 of lore of {_item} to "<yellow><bold>Status: <light red>Unavaliable"
        format gui slot 12 of player with {_item} to close
        set {_item} to note block named "<lime>RandomPVP"
        set line 1 of lore of {_item} to "<gray>A game where you have to find your "
        set line 2 of lore of {_item} to "<gray>weapons and armor in crates all"
        set line 3 of lore of {_item} to "<gray>around the map, then equip yourself"
        set line 4 of lore of {_item} to "<gray>to kill the most enemies you can."
        set line 6 of lore of {_item} to "<yellow><bold>Status: <gold>Beta"
        format gui slot 13 of player with {_item} to run player command "/play randompvp"
        set {_item} to boat named "<lime>The Bridge"
        set line 1 of lore of {_item} to "<gray>Be the first team to score 5 goals"
        set line 2 of lore of {_item} to "<gray>on the enemy's hole, but be careful"
        set line 3 of lore of {_item} to "<gray>the only way to reach the enemy's zone"
        set line 4 of lore of {_item} to "<gray>is by a 1 block bridge"
        set line 6 of lore of {_item} to "<yellow><bold>Status: <gold>Beta"
        format gui slot 14 of player with {_item} to run player command "/play tb"
        set {_item} to ladder named "<lime>Parkour"
        set line 1 of lore of {_item} to "<gray>A little more relaxing gamemode "
        set line 2 of lore of {_item} to "<gray>after a big conquer on any other"
        set line 3 of lore of {_item} to "<gray>Jump over platforms and try to not fall"
        set line 4 of lore of {_item} to "<gray>Are you ready to complete all maps?"
        set line 6 of lore of {_item} to "<yellow><bold>Status: <light red>Unavaliable"
        format gui slot 22 of player with {_item} to close
        format gui slot 36 of player with black stained glass pane named " " to close
        format gui slot 37 of player with black stained glass pane named " " to close
        format gui slot 38 of player with black stained glass pane named " " to close
        format gui slot 39 of player with black stained glass pane named " " to close
        format gui slot 40 of player with black stained glass pane named " " to close
        format gui slot 41 of player with black stained glass pane named " " to close
        format gui slot 42 of player with black stained glass pane named " " to close
        format gui slot 43 of player with black stained glass pane named " " to close
        format gui slot 44 of player with black stained glass pane named " " to close
        format gui slot 0 of player with black stained glass pane named " " to close
        format gui slot 1 of player with black stained glass pane named " " to close
        format gui slot 2 of player with black stained glass pane named " " to close
        format gui slot 3 of player with black stained glass pane named " " to close
        format gui slot 4 of player with black stained glass pane named " " to close
        format gui slot 5 of player with black stained glass pane named " " to close
        format gui slot 6 of player with black stained glass pane named " " to close
        format gui slot 7 of player with black stained glass pane named " " to close
        format gui slot 8 of player with black stained glass pane named " " to close
        format gui slot 9 of player with black stained glass pane named " " to close
        format gui slot 17 of player with black stained glass pane named " " to close
        format gui slot 18 of player with black stained glass pane named " " to close
        format gui slot 26 of player with black stained glass pane named " " to close
        format gui slot 27 of player with black stained glass pane named " " to close
        format gui slot 35 of player with black stained glass pane named " " to close
        set {_item} to chest named "<gold><bold>Cosmetics"
        set line 1 of lore of {_item} to "<gray>Modify your appaerance with"
        set line 2 of lore of {_item} to "<gray>some little modifiers"
        format gui slot 47 of player with {_item} to close
        set {_item} to barrier named "<light red><bold>Report a player"
        set line 1 of lore of {_item} to "<gray>Allows you to report a player"
        set line 2 of lore of {_item} to "<gray>if he is cheating or making hard the life"
        set line 3 of lore of {_item} to "<gray>of the rest of players"
        format gui slot 53 of player with {_item} to close
If you need something more, tell me!
 
try change "to run player command" to "to close then run player command"
Also didn't work, as I said, the problem occurs when deopped, when that command should work, and works in chat but in the guis nope.
[doublepost=1532525129,1532455188][/doublepost]*bump*
 
Also didn't work, as I said, the problem occurs when deopped, when that command should work, and works in chat but in the guis nope.
[doublepost=1532525129,1532455188][/doublepost]*bump*

Okay So I was wanting to test this out. I copy/pasted your skript into a test folder and created this command so I could test the bookshelf
code_language.skript:
command /lobbyset:
    trigger:
        set {lobby} to location of player

command /lobby:
    trigger:
        teleport player to {lobby}
I clicked the bookshelf and I was teleported to the lobby.
I was op'd and it worked. I deop'd myself and it works.
So im not really sure what the trouble is here
 
Okay So I was wanting to test this out. I copy/pasted your skript into a test folder and created this command so I could test the bookshelf
code_language.skript:
command /lobbyset:
    trigger:
        set {lobby} to location of player

command /lobby:
    trigger:
        teleport player to {lobby}
I clicked the bookshelf and I was teleported to the lobby.
I was op'd and it worked. I deop'd myself and it works.
So im not really sure what the trouble is here

Maybe that the lobby command has a permission node required, but the problem is that tthe permission node is in the default rank in the LP permission list. I did explained well?

The default rank is supposed to have that permission, and it works deopped but when using guis no.

EDIT: Okay, I will show more images
code_language.skript:
command /lobby:
    description: Teleports player to the main lobby
    usage: /lobby
    permission: wm.lobby
    permission message: You don't have permission to perform this command
    executable by: players
    trigger:
        if {wm.lobbycommand} is not 0:
            if {wm.golobby.%command sender%} is 0:
                message "<gold>[<yellow>WarpManager<gold>] <light red>You can't teleport to lobby now.."
            else if {wm.lobby} is not set:
                message "<gold>[<yellow>WarpManager<gold>] <light red>Lobby is not set yet: <light blue>/setlobby <light red>to set the lobby"
            else:
                teleport player to {wm.lobby}

And this is the permissions for the default rank:
Default Rank.png

PD: Had in account that the script I used for lobbies and homes and warps is a very old one and I were very noob when I did it, so is normal that I have no list variables used

PD2: When I execute the command /lobby without permission it shows a message but when using TuSKe GUI and click it the inventory will not do anything and no message is shown, so is a TuSKe error I think.
[doublepost=1532865011,1532780096][/doublepost]*Bump*
 
code_language.skript:
command /lobby:
    description: Teleports player to the main lobby
    usage: /lobby
    #permission: wm.lobby
    #permission message: You don't have permission to perform this command
    executable by: players
    trigger:
        command sender has permission "wm.lobby"
        if {wm.lobbycommand} is not 0:
            if {wm.golobby.%command sender%} is 0:
                message "<gold>[<yellow>WarpManager<gold>] <light red>You can't teleport to lobby now.."
            else if {wm.lobby} is not set:
                message "<gold>[<yellow>WarpManager<gold>] <light red>Lobby is not set yet: <light blue>/setlobby <light red>to set the lobby"
            else:
                teleport player to {wm.lobby}

try and see if this makes any difference for you
 
Still not working, probably TuSKe ignores permissions and only accept opped guys (admins)
 
And theres your problem :emoji_wink:
Haha I racked my brain on this one a few times.
Vault is an API that links chat/economy/permission stuff together.
Example, skript tells vault something, which tells LuckPerms something, and back and forth.
If you dont have fault, permissions aint going to work
 
I installed Vault as you said and now when deopped the player can't do absolutely nothing, including opening guis, something that before worked well

EDIT: Okay, was a bug, now fixed but with vault or without it is the same result.
 
I just realized now you are running tuske 1.8.2, is it the pikachu patch?
If YES, when you do /ver tuske, it should look like this
"[11:55:38 INFO]: TuSKe version 1.8.2-Pikachu-Patch-3"
If NO, then I suggest you download it from HERE

I have copied and pasted your code into a test Skript, and its working just fine. I set a lobby, and it TP's me to "lobby" I dont really see what the problem is other than a potentially outdated version of tuske
 
I just realized now you are running tuske 1.8.2, is it the pikachu patch?
If YES, when you do /ver tuske, it should look like this
"[11:55:38 INFO]: TuSKe version 1.8.2-Pikachu-Patch-3"
If NO, then I suggest you download it from HERE

I have copied and pasted your code into a test Skript, and its working just fine. I set a lobby, and it TP's me to "lobby" I dont really see what the problem is other than a potentially outdated version of tuske

Okay, now it works fine when deopped and also opped. Thank you very much!
 
Status
Not open for further replies.