Solved GUI (Player Heads)

  • 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.

Jooby

Member
Mar 6, 2020
4
0
0
22
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:
command /staffmembers:
    aliases: /sm
    permission: staff.members
    permission message: "&cYou aren't allowed to do this, sorry."
    trigger:
        wait 1 tick
        open chest with 1 row named "&d&lStaff Members" to player
        wait 1 tick

        format slot 0 with Jooby's skull named "&7&l[&4&lOWNER&7]&7 Jooby" with lore "&4Owner &7of &cMount&aDupe" to close
        format slot 1 with eChildish's skull named "&7&l[&c&lADMIN&7]&7 eChildish" with lore "&cAdmin &7of &cMount&aDupe" to close
        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
        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.
 
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:
command /staffmembers:
    aliases: /sm
    permission: staff.members
    permission message: "&cYou aren't allowed to do this, sorry."
    trigger:
        wait 1 tick
        open chest with 1 row named "&d&lStaff Members" to player
        wait 1 tick

        format slot 0 with Jooby's skull named "&7&l[&4&lOWNER&7]&7 Jooby" with lore "&4Owner &7of &cMount&aDupe" to close
        format slot 1 with eChildish's skull named "&7&l[&c&lADMIN&7]&7 eChildish" with lore "&cAdmin &7of &cMount&aDupe" to close
        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
        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.
You have to put the name of the player as a string.
Code:
format slot 0 with "Jooby"'s skull named "&7&l[&4&lOWNER&7]&7 Jooby" with lore "&4Owner &7of &cMount&aDupe" to close
 
You have to put the name of the player as a string.
Code:
format slot 0 with "Jooby"'s skull named "&7&l[&4&lOWNER&7]&7 Jooby" with lore "&4Owner &7of &cMount&aDupe" to close
Still getting the same error. Can't understand condition/effect

Code:
command /staff:
    aliases: /sg
    permission: staff.gui
    permission message: "&cYou aren't allowed to do this, sorry."
    trigger:
        wait 1 tick
        open chest with 3 rows named "&d&lStaff Menu" to player
        wait 1 tick

        format slot 10 of player with wither skeleton skull named "&5Vanish" with lore "&dClick to Vanish" to close then run [execute player command "/vanish"]
        format slot 11 of player with shiny redstone named "&5Staff List" with lore "&dList Online Staff" to close then run [execute player command "/stafflist"]
        format slot 12 of player with shiny tnt named "&5Warn" with lore "&dWarn a player" to close then run [execute player command "/warnlist"]
        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"]

command /staffmembers:
    aliases: /sm
    permission: staff.members
    permission message: "&cYou aren't allowed to do this, sorry."
    trigger:
        wait 1 tick
        open chest with 1 row named "&d&lStaff Members" to player
        wait 1 tick

        format slot 0 with "Jooby"'s skull named "&7&l[&4&lOWNER&7]&7 Jooby" with lore "&4Owner &7of &cMount&aDupe" to close
        format slot 1 with "eChildish"'s skull named "&7&l[&c&lADMIN&7]&7 eChildish" with lore "&cAdmin &7of &cMount&aDupe" to close
        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
        format slot 3 with "pugske"'s skull named "&7&l[&e&lHELPER&7]&7 pugske" with lore "&eHelper &7of &cMount&aDupe" to close
 
Status
Not open for further replies.