Developing A Hub GUI For A Server I Work At, But It Doenst Work, Im New To Skript Please Help

  • 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 community!

    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.

Noahjohnminer

Member
Dec 22, 2019
1
0
0
First Off This Is What i Made

command /navigate
trigger:
wait 1 tick
open chest with 3 rows named "Servers" to player
wait 1 tick
format slot 13 of player with shiny iron sword named "&l&4>>Kit PvP<<" with lore "&cWill take you to the Kit PvP server" and "&c %amount of all players server:kitpvp% / 100" to close then run [execute player command "/server kitpvp"]
on right click with compass:
if name of tool of player is "&l&2 >>Server Navigator<<":
[execute player command "/navigate"]
on right click with eye of ender:
if name of tool of player is "&l&2 >>Store<<":
[execute console command "/msg %player% http://www.atomicnetwork.club/"]
on right click with ender pearl:
if name of tool of player is "&l&2 >>Rules<<":
[execute console command "/msg %player% http://www.atomicnetwork.club/"]
on inventory click:
if clicked item's name is "{@Visible}" or "{@Hidden}":
cancel event
if clicked type is number key:
if clicked item's name is "{@Visible}" or "{@Hidden}":
cancel event
on log on:
wait 1 tick
set item 1 of player to air
set item 2 of player to air
set item 3 of player to air
set item 4 of player to eye of ender named "&l&2 >>Store<<"
set item 5 of player to compass named "&l&2 >>Server Navigator<<"
set item 6 of player to ender pearl named "&l&2 >>Rules<<"
set item 7 of player to air
set item 8 of player to air
set item 9 of player to air
set current hotbar slot of player to 5

but it says the command doesnt exist, and you dont get the items like above please help fast as we are planning on realeasing in a few days :emoji_slight_smile:
 
I see a LOT of errors with this. When you are using a condition, put a : at the end, same goes for the end of when you are making the command. Make sure to indent too.

Code:
on skript load:
    create new gui with id "Servers" with virtual chest with 3 rows named "&cServers"
    make gui slot 13 with glowing iron sword named "&4&l>>Kit PvP<<" with lore "&cWill take you to the KitPvP server||&c %amount of all players server:kitpvp% / 100":
        execute player command "server kitpvp"
command /navigate:
    trigger:
        open gui "Servers" to player
on right click with compass:
    if name of tool of player is "&l&2 >>Server Navigator<<":
        open gui "Servers" to player
on right click with eye of ender:
    if name of tool of player is "&l&2 >>Store<<":
        send "&catomicnetwork.club"
on right click with ender pearl:
    if name of tool of player is "&l&2 >>Rules<<":
        send "&catomicnetwork.club"
on inventory click:
    if clicked item's name is "{@Visible}" or "{@Hidden}":
        cancel event
    if clicked type is number key:
        if clicked item's name is "{@Visible}" or "{@Hidden}":
            cancel event
on join:
    wait 1 tick
    set slot 0 of player to air
    set slot 1 of player to air
    set slot 2 of player to air
    set slot 3 of player to eye of ender named "&l&2 >>Store<<"
    set slot 4 of player to compass named "&l&2 >>Server Navigator<<"
    set slot 5 of player to ender pearl named "&l&2 >>Rules<<"
    set slot 6 of player to air
    set slot 7 of player to air
    set slot 8 of player to air
    set current hotbar slot of player to 5
 
Status
Not open for further replies.