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.

Solved GUI (Player Heads)

Discussion in 'Skript' started by Jooby, Mar 6, 2020.

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

    Jooby Member

    Joined:
    Mar 6, 2020
    Messages:
    4
    Likes Received:
    0
    I have a working GUI after using /staff or /sg
    - I have the player head slot set up to bring up the /staffmembers gui, which will then have the heads of my staff members. This works fine. However, when I reload the skript after running the code, these errors are present; "Can't understand this condition/effect:" This is for the staff members skull. This is my code I tried using, I might just need another skript plugin, but not sure which. Any help will be appreciated.


    Code (Text):
    1. command /staffmembers:
    2.     aliases: /sm
    3.     permission: staff.members
    4.     permission message: "&cYou aren't allowed to do this, sorry."
    5.     trigger:
    6.         wait 1 tick
    7.         open chest with 1 row named "&d&lStaff Members" to player
    8.         wait 1 tick
    9.  
    10.         format slot 0 with Jooby's skull named "&7&l[&4&lOWNER&7]&7 Jooby" with lore "&4Owner &7of &cMount&aDupe" to close
    11.         format slot 1 with eChildish's skull named "&7&l[&c&lADMIN&7]&7 eChildish" with lore "&cAdmin &7of &cMount&aDupe" to close
    12.         format slot 2 with THE_VIPER_001's skull named "&7&l[&3&lMODERATOR&7]&7 THE_VIPER_001" with lore "&3Mod &7of &cMount&aDupe" to close
    13.         format slot 3 with pugske's skull named "&7&l[&e&lHELPER&7]&7 pugske" with lore "&eHelper &7of &cMount&aDupe" to close
    No indentation errors that I am aware of, just can't understand the condition/effects, which might require an extra plugin. Not sure which.


    Also, for players who don't have permission to use this command, it doesn't give my permission message out, so if someone can tell me why that is and how I can fix it that would also be appreciated.
     
  2. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    You have to put the name of the player as a string.
    Code (Text):
    1. format slot 0 with "Jooby"'s skull named "&7&l[&4&lOWNER&7]&7 Jooby" with lore "&4Owner &7of &cMount&aDupe" to close
     
  3. Jooby

    Jooby Member

    Joined:
    Mar 6, 2020
    Messages:
    4
    Likes Received:
    0
    Still getting the same error. Can't understand condition/effect

    Code (Text):
    1. command /staff:
    2.     aliases: /sg
    3.     permission: staff.gui
    4.     permission message: "&cYou aren't allowed to do this, sorry."
    5.     trigger:
    6.         wait 1 tick
    7.         open chest with 3 rows named "&d&lStaff Menu" to player
    8.         wait 1 tick
    9.  
    10.         format slot 10 of player with wither skeleton skull named "&5Vanish" with lore "&dClick to Vanish" to close then run [execute player command "/vanish"]
    11.         format slot 11 of player with shiny redstone named "&5Staff List" with lore "&dList Online Staff" to close then run [execute player command "/stafflist"]
    12.         format slot 12 of player with shiny tnt named "&5Warn" with lore "&dWarn a player" to close then run [execute player command "/warnlist"]
    13.         format slot 13 of player with player head named "&5Staff Members" with lore "&dList of Our Staff Members" to close then run [execute player command "/staffmembers"]
    14.  
    15. command /staffmembers:
    16.     aliases: /sm
    17.     permission: staff.members
    18.     permission message: "&cYou aren't allowed to do this, sorry."
    19.     trigger:
    20.         wait 1 tick
    21.         open chest with 1 row named "&d&lStaff Members" to player
    22.         wait 1 tick
    23.  
    24.         format slot 0 with "Jooby"'s skull named "&7&l[&4&lOWNER&7]&7 Jooby" with lore "&4Owner &7of &cMount&aDupe" to close
    25.         format slot 1 with "eChildish"'s skull named "&7&l[&c&lADMIN&7]&7 eChildish" with lore "&cAdmin &7of &cMount&aDupe" to close
    26.         format slot 2 with "THE_VIPER_001"'s skull named "&7&l[&3&lMODERATOR&7]&7 THE_VIPER_001" with lore "&3Mod &7of &cMount&aDupe" to close
    27.         format slot 3 with "pugske"'s skull named "&7&l[&e&lHELPER&7]&7 pugske" with lore "&eHelper &7of &cMount&aDupe" to close
     
Thread Status:
Not open for further replies.

Share This Page

Loading...