1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Gui is closing on Pex Default Permission

Discussion in 'Skript' started by MomoHD, Nov 27, 2019.

Thread Status:
Not open for further replies.
  1. MomoHD

    MomoHD Member

    Joined:
    Nov 23, 2019
    Messages:
    18
    Likes Received:
    0
    Hello, I currently have problems with a Gui script. If a player with the default rank of Pex (The permission I have created him the script I have assigned to the player) In Gui ürgendwo presses on it, then closes the Gui, but does not open a new one. On my 2 account where I have '*', the funktuniert flawlessly.

    Please help very fast

    Gui Skript:


    Code (Text):
    1.  
    2. command /menu:
    3.     trigger:
    4.         if player has permission "ulx.menu.default":
    5.             open chest with 1 row named "&b&lULX Menu" to player
    6.             wait 5 tick
    7.             format slot 0 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    8.             format slot 1 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    9.             format slot 2 of player with item frame named "&bChat" with lore "&3Serverchat" to close then run [make player execute command "chatmenu"]
    10.             format slot 3 of player with fishing rod named "&bFun" with lore "&3Trolling Party" to close then run [make player execute command "funmenu"]
    11.             format slot 4 of player with compass named "&bTeleport" with lore "&3Radar - Teleporter" to close then run [make player execute command "teleportmenu"]
    12.             format slot 5 of player with glowing diamond axe named "&bUtility" with lore "&4&lBanhammer" to close then run [make player execute command "Utilitymenu"]
    13.             format slot 6 of player with paper named "&bVoting" with lore "&3Survey note" to close then run [make player execute command "votingmenu"]
    14.             format slot 7 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    15.             format slot 8 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    16.         if player has permission "ulx.menu.owner":  
    17.             open chest with 1 row named "&b&lULX Menu" to player
    18.             wait 5 tick
    19.             format slot 0 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    20.             format slot 1 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    21.             format slot 2 of player with item frame named "&bChat"
    22.             with lore "&3Serverchat" to close then run [make player execute command "chatmenu"]
    23.             format slot 3 of player with fishing rod named "&bFun" with lore "&3Trolling Party" to close then run [make player execute command "funmenu"]
    24.             format slot 4 of player with compass named "&bTeleport" with lore "&3Radar - Teleporter" to close then run [make player execute command "teleportmenu"]
    25.             format slot 5 of player with glowing diamond axe named "&bUtility" with lore "&4&lBanhammer" to close then run [make player execute command "Utilitymenu"]
    26.             format slot 6 of player with paper named "&bVoting" with lore "&3Survey note" to close then run [make player execute command "votingmenu"]
    27.             format slot 7 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    28.             format slot 8 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    29.            
    30. command /chatmenu:
    31.     permission: ulx.chatmenu
    32.     trigger:
    33.         if player has permission "ulx.chatmenu.default":
    34.             open chest with 1 row named "&b&lULX Menu &r&3- &f&lChat" to player
    35.             wait 5 tick
    36.             format slot 0 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    37.             format slot 1 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    38.             format slot 2 of player with red dye named "&c&lback" with lore "&cGo back to the Menu" to close then run [make player execute command "menu"]
    39.             format slot 3 of player with redstone named "&fasay" with lore "&7Send a message to currently connected admins" to close then run [make player execute command "asay"]
    40.             format slot 4 of player with barrier named "&fpsay" with lore "&7Send a private message to target" to close then run [make player execute command "psay"]
    41.             format slot 5 of player with clock named "&fthetime" with lore "&7Shows you the server time" to close then run [make player execute command "thetime"]
    42.             format slot 6 of player with lime dye named "&a&lNext Page" with lore "&aOpen the Utility Page" to close then run [make player execute command "utilitymenu"]
    43.             format slot 7 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    44.             format slot 8 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    45.         if player has permission "ulx.chatmenu.owner":  
    46.             open chest with 1 row named "&b&lULX Menu &r&3- &f&lChat" to player
    47.             wait 5 tick
    48.             format slot 0 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    49.             format slot 1 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    50.             format slot 2 of player with red dye named "&c&lback" with lore "&cGo back to the Menu" to close then run [make player execute command "menu"]
    51.             format slot 3 of player with redstone named "&fasay" with lore "&7Send a message to currently connected admins" to close then run [make player execute command "asay"]
    52.             format slot 4 of player with barrier named "&fpsay" with lore "&7Send a private message to target" to close then run [make player execute command "psay"]
    53.             format slot 5 of player with clock named "&fthetime" with lore "&7Shows you the server time" to close then run [make player execute command "thetime"]
    54.             format slot 6 of player with lime dye named "&a&lNext Page" with lore "&aOpen the Utility Page" to close then run [make player execute command "utilitymenu"]
    55.             format slot 7 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    56.             format slot 8 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    57.            
    58.            
    59.            
    60.  
    61.        
    62.    
     
  2. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    314
    Likes Received:
    21
    * stands for all permissions, and in your if statement the default comes first so that is the one executed, either change positions or remove the default permission from your group :emoji_slight_smile:
     
  3. MomoHD

    MomoHD Member

    Joined:
    Nov 23, 2019
    Messages:
    18
    Likes Received:
    0
    does that mean that I should push the default permission to the bottom ???
    --- Double Post Merged, Nov 27, 2019, Original Post Date: Nov 27, 2019 ---
    I have now pushed down with the default permission, but it still does not work
     
  4. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    314
    Likes Received:
    21
    Show me the "new" code
     
  5. MomoHD

    MomoHD Member

    Joined:
    Nov 23, 2019
    Messages:
    18
    Likes Received:
    0
    Code (Text):
    1.  
    2. command /menu:
    3.     trigger:
    4.         if player has permission "ulx.menu.owner":  
    5.             open chest with 1 row named "&b&lULX Menu" to player
    6.             wait 5 tick
    7.             format slot 0 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    8.             format slot 1 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    9.             format slot 2 of player with item frame named "&bChat"
    10.             with lore "&3Serverchat" to close then run [make player execute command "chatmenu"]
    11.             format slot 3 of player with fishing rod named "&bFun" with lore "&3Trolling Party" to close then run [make player execute command "funmenu"]
    12.             format slot 4 of player with compass named "&bTeleport" with lore "&3Radar - Teleporter" to close then run [make player execute command "teleportmenu"]
    13.             format slot 5 of player with glowing diamond axe named "&bUtility" with lore "&4&lBanhammer" to close then run [make player execute command "Utilitymenu"]
    14.             format slot 6 of player with paper named "&bVoting" with lore "&3Survey note" to close then run [make player execute command "votingmenu"]
    15.             format slot 7 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    16.             format slot 8 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    17.  
    18.         if player has permission "ulx.menu.default":
    19.             open chest with 1 row named "&b&lULX Menu" to player
    20.             wait 5 tick
    21.             format slot 0 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    22.             format slot 1 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    23.             format slot 2 of player with item frame named "&bChat" with lore "&3Serverchat" to close then run [make player execute command "chatmenu"]
    24.             format slot 3 of player with fishing rod named "&bFun" with lore "&3Trolling Party" to close then run [make player execute command "funmenu"]
    25.             format slot 4 of player with compass named "&bTeleport" with lore "&3Radar - Teleporter" to close then run [make player execute command "teleportmenu"]
    26.             format slot 5 of player with glowing diamond axe named "&bUtility" with lore "&4&lBanhammer" to close then run [make player execute command "Utilitymenu"]
    27.             format slot 6 of player with paper named "&bVoting" with lore "&3Survey note" to close then run [make player execute command "votingmenu"]
    28.             format slot 7 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    29.             format slot 8 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    30.            
    31. command /chatmenu:
    32.     permission: ulx.chatmenu
    33.     trigger:
    34.         if player has permission "ulx.chatmenu.owner":  
    35.             open chest with 1 row named "&b&lULX Menu &r&3- &f&lChat" to player
    36.             wait 5 tick
    37.             format slot 0 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    38.             format slot 1 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    39.             format slot 2 of player with red dye named "&c&lback" with lore "&cGo back to the Menu" to close then run [make player execute command "menu"]
    40.             format slot 3 of player with redstone named "&fasay" with lore "&7Send a message to currently connected admins" to close then run [make player execute command "asay"]
    41.             format slot 4 of player with barrier named "&fpsay" with lore "&7Send a private message to target" to close then run [make player execute command "psay"]
    42.             format slot 5 of player with clock named "&fthetime" with lore "&7Shows you the server time" to close then run [make player execute command "thetime"]
    43.             format slot 6 of player with lime dye named "&a&lNext Page" with lore "&aOpen the Utility Page" to close then run [make player execute command "utilitymenu"]
    44.             format slot 7 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    45.             format slot 8 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    46.            
    47.             if player has permission "ulx.chatmenu.default":
    48.             open chest with 1 row named "&b&lULX Menu &r&3- &f&lChat" to player
    49.             wait 5 tick
    50.             format slot 0 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    51.             format slot 1 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    52.             format slot 2 of player with red dye named "&c&lback" with lore "&cGo back to the Menu" to close then run [make player execute command "menu"]
    53.             format slot 3 of player with redstone named "&fasay" with lore "&7Send a message to currently connected admins" to close then run [make player execute command "asay"]
    54.             format slot 4 of player with barrier named "&fpsay" with lore "&7Send a private message to target" to close then run [make player execute command "psay"]
    55.             format slot 5 of player with clock named "&fthetime" with lore "&7Shows you the server time" to close then run [make player execute command "thetime"]
    56.             format slot 6 of player with lime dye named "&a&lNext Page" with lore "&aOpen the Utility Page" to close then run [make player execute command "utilitymenu"]
    57.             format slot 7 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    58.             format slot 8 of player with glowing blue stained glass pane named "&8Line" with lore "" to close
    59.            
    60.            
    61.  
    62.        
    63.    
     
Thread Status:
Not open for further replies.

Share This Page

Loading...