Something wrong here?

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

ofekassiag

Member
Apr 24, 2019
25
0
1
58
Code:
                set slot 8 of player to redstone dust of unbreaking 10 named "&4&lLEAVE" with lore "&4Leaves staff mode."
                set slot 7 of player to Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode."
                set slot 5 of player to wooden axe named "&5&lWorldEdit"
                set slot 2 of player's current inventory to ("HorizonCT" parsed as offline player)'s skull named "Notch"
                give 1 diamond axe named "&cBanHammer" to player
 
I can simply tell what is wrong here by looking at your description- Wait, there’s none.

Please give us more info
 
This is the skript.
Code:
command /staff [<text>]:
    permission: staff.use
    trigger:
        if arg 1 is set:
            if arg 1 is "on":
                if {staffmode.%player%} is set:
                    send "&9[Staff] &bStaff mode already enabled!" to player
                    stop
                send "&9[Staff] &bYou are now vanished and in staff mode!" to player
                set {staffmode.%player%} to true
                set {stuff.%player%} to player's serialized inventory
                clear player's inventory
                set gamemode of player to creative
                make player execute command "v on"
                set slot 8 of player to redstone dust of unbreaking 10 named "&4&lLEAVE" with lore "&4Leaves staff mode."
                set slot 7 of player to Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode."
                set slot 5 of player to wooden axe named "&5&lWorldEdit"
                set slot 2 of player's current inventory to ("HorizonCT" parsed as offline player)'s skull named "Notch"
                give 1 diamond axe named "&cBanHammer" to player
            if arg 1 is "off":
                if {staffmode.%player%} is not set:
                    send "&9[Staff] &bStaff mode already disabled!" to player
                    stop
                send "&9[Staff] &bStaff mode disabled!" to player
                delete {staffmode.%player%}
                make player execute command "/v off"
                set gamemode of player to creative
                remove player from {staffmode::*}
                clear player's inventory
                restore inventory of player from {stuff.%player%}
                set player's walk speed to 0.2
                set player's fly speed to 0.1
            if arg 1 is not "on" or "off":
                send "&9[Staff] &b&lOops! &bYou might've typed something wrong! Try again!" to player
        if arg 1 is not set:
            send "&cUsage: /staff <on/off>" to player
            
on join:
    loop all players:
        if {vanish.%loop-player%} is set:
            hide loop-player from all players
            
on quit:
    delete {staffmode.%player%}
    remove player from {staffmode::*}
    
on pick up:
    if {staffmode.%player%} is set:
        cancel event
    
on rightclick:
    if {staffmode.%player%} is set:
        if player's tool is Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode.":
            set slot 7 of player to Gray Dye named "&f&lVANISH OFF" with lore "&fToggles vanish mode."
            delete {vanish.%player%}
            make player execute command "/v off"
            stop
        if player's tool is Gray Dye named "&f&lVANISH OFF" with lore "&fToggles vanish mode.":
            set slot 7 of player to Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode."
            set {vanish.%player%} to true
            make player execute command "/v on"
        if player's tool is redstone dust of unbreaking 10 named "&4&lLEAVE" with lore "&4Leaves staff mode.":
            delete {staffmode.%player%}
            send "&9[Staff] &bStaff mode disabled!" to player
            delete {staffmode.%player%}
            make player execute command "/v off"
            set gamemode of player to creative
            restore inventory of player from {stuff.%player%}
            delete {staffmode.%player%}
            clear player's inventory
            set player's walk speed to 0.2
            set player's fly speed to 0.1

        
on rightclick on player:
    if player is holding diamond axe named "&cBanHammer":
        wait 3 ticks
        make player execute command "/b %clicked player%"
            
on drop:
    if {staffmode.%player%} is set:
        if item is Gray Dye named "&f&lVANISH OFF" with lore "&fToggles vanish mode.":
            cancel event
            send "&cYou cannot drop this item!" to player
        if item is Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode.":
            cancel event
            send "&cYou cannot drop this item!" to player
 
This is the skript.
Code:
command /staff [<text>]:
    permission: staff.use
    trigger:
        if arg 1 is set:
            if arg 1 is "on":
                if {staffmode.%player%} is set:
                    send "&9[Staff] &bStaff mode already enabled!" to player
                    stop
                send "&9[Staff] &bYou are now vanished and in staff mode!" to player
                set {staffmode.%player%} to true
                set {stuff.%player%} to player's serialized inventory
                clear player's inventory
                set gamemode of player to creative
                make player execute command "v on"
                set slot 8 of player to redstone dust of unbreaking 10 named "&4&lLEAVE" with lore "&4Leaves staff mode."
                set slot 7 of player to Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode."
                set slot 5 of player to wooden axe named "&5&lWorldEdit"
                set slot 2 of player's current inventory to ("HorizonCT" parsed as offline player)'s skull named "Notch"
                give 1 diamond axe named "&cBanHammer" to player
            if arg 1 is "off":
                if {staffmode.%player%} is not set:
                    send "&9[Staff] &bStaff mode already disabled!" to player
                    stop
                send "&9[Staff] &bStaff mode disabled!" to player
                delete {staffmode.%player%}
                make player execute command "/v off"
                set gamemode of player to creative
                remove player from {staffmode::*}
                clear player's inventory
                restore inventory of player from {stuff.%player%}
                set player's walk speed to 0.2
                set player's fly speed to 0.1
            if arg 1 is not "on" or "off":
                send "&9[Staff] &b&lOops! &bYou might've typed something wrong! Try again!" to player
        if arg 1 is not set:
            send "&cUsage: /staff <on/off>" to player
           
on join:
    loop all players:
        if {vanish.%loop-player%} is set:
            hide loop-player from all players
           
on quit:
    delete {staffmode.%player%}
    remove player from {staffmode::*}
   
on pick up:
    if {staffmode.%player%} is set:
        cancel event
   
on rightclick:
    if {staffmode.%player%} is set:
        if player's tool is Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode.":
            set slot 7 of player to Gray Dye named "&f&lVANISH OFF" with lore "&fToggles vanish mode."
            delete {vanish.%player%}
            make player execute command "/v off"
            stop
        if player's tool is Gray Dye named "&f&lVANISH OFF" with lore "&fToggles vanish mode.":
            set slot 7 of player to Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode."
            set {vanish.%player%} to true
            make player execute command "/v on"
        if player's tool is redstone dust of unbreaking 10 named "&4&lLEAVE" with lore "&4Leaves staff mode.":
            delete {staffmode.%player%}
            send "&9[Staff] &bStaff mode disabled!" to player
            delete {staffmode.%player%}
            make player execute command "/v off"
            set gamemode of player to creative
            restore inventory of player from {stuff.%player%}
            delete {staffmode.%player%}
            clear player's inventory
            set player's walk speed to 0.2
            set player's fly speed to 0.1

       
on rightclick on player:
    if player is holding diamond axe named "&cBanHammer":
        wait 3 ticks
        make player execute command "/b %clicked player%"
           
on drop:
    if {staffmode.%player%} is set:
        if item is Gray Dye named "&f&lVANISH OFF" with lore "&fToggles vanish mode.":
            cancel event
            send "&cYou cannot drop this item!" to player
        if item is Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode.":
            cancel event
            send "&cYou cannot drop this item!" to player
okay
 
This is the skript.
Code:
command /staff [<text>]:
    permission: staff.use
    trigger:
        if arg 1 is set:
            if arg 1 is "on":
                if {staffmode.%player%} is set:
                    send "&9[Staff] &bStaff mode already enabled!" to player
                    stop
                send "&9[Staff] &bYou are now vanished and in staff mode!" to player
                set {staffmode.%player%} to true
                set {stuff.%player%} to player's serialized inventory
                clear player's inventory
                set gamemode of player to creative
                make player execute command "v on"
                set slot 8 of player to redstone dust of unbreaking 10 named "&4&lLEAVE" with lore "&4Leaves staff mode."
                set slot 7 of player to Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode."
                set slot 5 of player to wooden axe named "&5&lWorldEdit"
                set slot 2 of player's current inventory to ("HorizonCT" parsed as offline player)'s skull named "Notch"
                give 1 diamond axe named "&cBanHammer" to player
            if arg 1 is "off":
                if {staffmode.%player%} is not set:
                    send "&9[Staff] &bStaff mode already disabled!" to player
                    stop
                send "&9[Staff] &bStaff mode disabled!" to player
                delete {staffmode.%player%}
                make player execute command "/v off"
                set gamemode of player to creative
                remove player from {staffmode::*}
                clear player's inventory
                restore inventory of player from {stuff.%player%}
                set player's walk speed to 0.2
                set player's fly speed to 0.1
            if arg 1 is not "on" or "off":
                send "&9[Staff] &b&lOops! &bYou might've typed something wrong! Try again!" to player
        if arg 1 is not set:
            send "&cUsage: /staff <on/off>" to player
           
on join:
    loop all players:
        if {vanish.%loop-player%} is set:
            hide loop-player from all players
           
on quit:
    delete {staffmode.%player%}
    remove player from {staffmode::*}
   
on pick up:
    if {staffmode.%player%} is set:
        cancel event
   
on rightclick:
    if {staffmode.%player%} is set:
        if player's tool is Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode.":
            set slot 7 of player to Gray Dye named "&f&lVANISH OFF" with lore "&fToggles vanish mode."
            delete {vanish.%player%}
            make player execute command "/v off"
            stop
        if player's tool is Gray Dye named "&f&lVANISH OFF" with lore "&fToggles vanish mode.":
            set slot 7 of player to Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode."
            set {vanish.%player%} to true
            make player execute command "/v on"
        if player's tool is redstone dust of unbreaking 10 named "&4&lLEAVE" with lore "&4Leaves staff mode.":
            delete {staffmode.%player%}
            send "&9[Staff] &bStaff mode disabled!" to player
            delete {staffmode.%player%}
            make player execute command "/v off"
            set gamemode of player to creative
            restore inventory of player from {stuff.%player%}
            delete {staffmode.%player%}
            clear player's inventory
            set player's walk speed to 0.2
            set player's fly speed to 0.1

       
on rightclick on player:
    if player is holding diamond axe named "&cBanHammer":
        wait 3 ticks
        make player execute command "/b %clicked player%"
           
on drop:
    if {staffmode.%player%} is set:
        if item is Gray Dye named "&f&lVANISH OFF" with lore "&fToggles vanish mode.":
            cancel event
            send "&cYou cannot drop this item!" to player
        if item is Pink Dye named "&f&lVANISH ON" with lore "&fToggles vanish mode.":
            cancel event
            send "&cYou cannot drop this item!" to player
Expected 2 Tabs but found someone who doesn’t give any information instead line 7 WhyAreYouLikeThis.sk
 
Status
Not open for further replies.