Solved Problem with players inventories

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

couger44

Supporter
Feb 19, 2017
713
31
28
Chile
Hello,
A problem has recently arisen in my server, you will ask "Why do you publish it here?", Well the thing is that almost 80% of my server is based on skripts created by me, well the problem is the following: When a player receives items in the hotbar, he can use them as he wants, no ?. But the problem is when they try to change the inventory items to those of the hotbar, they are returned to where they were. For example, if slot 1 of my inventory has a diamond sword, and in my inventory a stack of cobblestone blocks, when I try to put the cobblestone blocks in slot n ° 1, these are returned to the diamond sword , and the only way to "" solve "" this is to exit and enter the server, which is quite annoying.
 
Have you got any code to show what you're doing? Also, versions of Skript and your server would help.
 
You could try to see if any of your scripts caused it by disabling them all, or disabling some plugins which could cause that.
 
Have you got any code to show what you're doing? Also, versions of Skript and your server would help.
Spigot 1.8.8
Skript dev-36
So, now i gonna show part of the codes that contains inventories code.

1. Coins of my server "WorldCoins":

code_language.skript:
command /worldcoins [<text>]:
    trigger:
        arg 1 is not set:
            set {_int} to 27
            open chest with 5 rows named "&e&lWorldCoins" to player
            wait 1 tick
            set slot 10 of player's current inventory to iron ingot named "&eCompra el rango &a[VIP]&e por 500 WorldCoins!" # with lore "&eSi tienes &a500&e WorldCoins puedes comprar el rango &a[VIP]&e ahora mismo!"
            set slot 16 of player's current inventory to diamond chestplate named "&eCompra el &6LEGENDARIO&f &8&l&kii&b&lWorldSet&8&l&kii&e por 150 WorldCoins!"
            set slot 20 of player's current inventory to gold ingot named "&eCompra el rango &a[VIP&6+&a]&e por 1500 WorldCoins!"
            set slot 40 of player's current inventory to chest named "&cCerrar inventario."
            set slot 41 of player's current inventory to emerald named "&eWorldCoins actuales: &a%{worldcoins.%player%}%"
            
        arg 1 is "vip":
            if {worldcoins.%player%} >= 500:
                send "&bFelicidades!"
                send "&bCompraste el rango &a[VIP]&b!"
                execute console command "pex user %player% group set vip"
                remove 500 from {worldcoins.%player%}
            else:
                send "&cNo tienes WorldCoins suficientes para comprar el rango &a[VIP]"
                send "&f"
                send "&cVe a la tienda para comprar WorldCoins: http://tienda-worldcraft.buycraft.net/category/1296449"
                stop
            
        arg 1 is "vip+":
            if {worldcoins.%player%} >= 1500:
                send "&bFelicidades!"
                send "&bCompraste el rango &a[VIP&6+&a]&b!"
                execute console command "pex user %player% group set vip+"
                remove 1500 from {worldcoins.%player%}
            else:
                send "&cNo tienes WorldCoins suficientes para comprar el rango &a[VIP&6+&a]"
                send "&f"
                send "&cVe a la tienda para comprar WorldCoins: http://tienda-worldcraft.buycraft.net/category/1296449"
                stop
        arg 1 is "worldset":
            if {worldcoins.%player%} >= 150:
                send "&bFelicidades!"
                send "&bCompraste el &8&l&ki&b&lWorldSet&8&l&kii&b!"
                remove 150 from {worldcoins.%player%}
                add 1 diamond helmet of protection 80, unbreaking 100 named "&8&l&kii&b&lWorldSet&8&l&kii" to player
                wait 4 ticks
                add 1 diamond chestplate of protection 80, unbreaking 100 named "&8&l&kii&b&lWorldSet&8&l&kii" to player
                wait 4 ticks
                add 1 diamond leggings of protection 80, unbreaking 100 named "&8&l&kii&b&lWorldSet&8&l&kii" to player
                wait 4 ticks
                add 1 diamond boots of protection 80, unbreaking 100 named "&8&l&kii&b&lWorldSet&8&l&kii" to player
                wait 4 ticks
                add 1 diamond sword of sharpness 20, unbreaking 50, looting 10 named "&8&l&kii&b&lWorldSet&8&l&kii" to player
                wait 4 ticks
                add 1 diamond pickaxe of efficiency 200, unbreaking 800, fortune 80 named "&8&l&kii&b&lWorldSet&8&l&kii" to player
            else:
                send "&cNo tienes WorldCoins suficientes para comprar el &8&l&kii&b&lWorldSet&8&l&kii"
                send "&f"
                send "&cVe a la tienda para comprar WorldCoins: http://tienda-worldcraft.buycraft.net/category/1296449"
                stop
    
on inventory click:
    clicked inventory isn't player's inventory
    if inventory name of player's current inventory is "&e&lWorldCoins":
        if clicked slot is 10:
            close inventory of player
            execute player command "worldcoins vip"
            stop
        else if clicked slot is 16:
            close inventory of player
            execute player command "worldcoins worldset"
            stop
        else if clicked slot is 20:
            close inventory of player
            execute player command "worldcoins vip+"
            stop
        else if clicked slot is 40:
            close inventory of player
            stop
        else if clicked slot is 41:
            close inventory of player
            wait 5 ticks
            execute player command "worldcoins"
            stop

2. A uncompleted sistem of level in skript.
code_language.skript:
on command "premios":
    cancel event
    sender != player:
        send "Comando ejecutable por jugadores." to console
    sender = player:
        open chest with 6 rows named "&e&lPremios por tus WorldEXP!" to player
        wait a tick
    
        set {_cofre.10} to chest named "&6Requiere WorldLevel 2!"
        set line 2 of lore of {_cofre.10} to "&3+10.000 de dinero."
        set line 4 of lore of {_cofre.10} to "&310 de WorldEXP para llegar a este nivel."
        set slot 0 of player's current inventory to {_cofre.10}
    
        set {_cofre.20} to chest named "&6Requiere WorldLevel 3!"
        set line 2 of lore of {_cofre.20} to "&3+20.000 de dinero."
        set line 4 of lore of {_cofre.20} to "&320 de WorldEXP para llegar a este nivel."
        set slot 1 of player's current inventory to {_cofre.20}
    
        set {_cofre.30} to chest named "&6Requiere WorldLevel 4!"
        set line 2 of lore of {_cofre.30} to "&3Booster X2 de una hora."
        set line 4 of lore of {_cofre.30} to "&330 de WorldEXP para llegar a este nivel."
        set slot 2 of player's current inventory to {_cofre.30}
    
        set {_cofre.40} to chest named "&6Requiere WorldLevel 5!"
        set line 2 of lore of {_cofre.40} to "&3+50.000 de dinero."
        set line 4 of lore of {_cofre.40} to "&340 de WorldEXP para llegar a este nivel."
        set slot 3 of player's current inventory to {_cofre.40}
    
        set {_cofre.70} to chest named "&6Requiere WorldLevel 6!"
        set line 2 of lore of {_cofre.70} to "&3+70.000 de dinero."
        set line 4 of lore of {_cofre.70} to "&370 de WorldEXP para llegar a este nivel."
        set slot 4 of player's current inventory to {_cofre.70}
    
        set {_cofre.100} to chest named "&6Requiere WorldLevel 7!"
        set line 2 of lore of {_cofre.100} to "&3+70.000 de dinero."
        set line 4 of lore of {_cofre.100} to "&3100 de WorldEXP para llegar a este nivel."
        set slot 5 of player's current inventory to {_cofre.100}
    
        set {_cofre.120} to chest named "&6Requiere WorldLevel 8!"
        set line 2 of lore of {_cofre.120} to "&3+100.000 de dinero."
        set line 4 of lore of {_cofre.120} to "&3120 de WorldEXP para llegar a este nivel."
        set slot 6 of player's current inventory to {_cofre.120}
    
        set {_cofre.200} to chest named "&6Requiere WorldLevel 9!"
        set line 2 of lore of {_cofre.200} to "&3+120.000 de dinero."
        set line 4 of lore of {_cofre.200} to "&3200 de WorldEXP para llegar a este nivel."
        set slot 7 of player's current inventory to {_cofre.200}
    
        set {_cofre.250} to chest named "&6Requiere WorldLevel 10!"
        set line 2 of lore of {_chest.250} to "&3A los rangos &a[VIP&6+&a]&3 se les dará el &c+&3"
        set line 3 of lore of {_cofre.250} to "&3para su rango."
        set line 5 of lore of {_cofre.250} to "&3250 de WorldEXP para llegar a este nivel."
        set slot 8 of player's current inventory to {_cofre.250}

3. A uncompleted skript kit from my server.
code_language.skript:
command /kit [<text>]:
    trigger:
        arg 1 is not set:
            open chest with 6 rows named "&2&lClases" to player
            set {_c} to "&eClickea aquí para tomar este kit!"
            wait a tick
            set slot 10 of player's current inventory to coal block named "&fKit &8[USER]"
            set slot 19 of player's current inventory to gray stained glass pane named "%{_c}%"
            set slot 11 of player's current inventory to lapis block named "&fKit &7[Nov&8ato]"
            set slot 20 of player's current inventory to blue stained glass pane named "%{_c}%"
            set slot 12 of player's current inventory to redstone block named "&fKit &8[Profe&3sional]"
            set slot 21 of player's current inventory to red stained glass pane named "%{_c}%"
            set slot 13 of player's current inventory to iron block named "&fKit &6[Experto]"
            set slot 22 of player's current inventory to white stained glass pane named "%{_c}%"
            set slot 14 of player's current inventory to gold block named "&fKit &9[Ci&fvil]"
            set slot 23 of player's current inventory to yellow stained glass pane named "%{_c}%"
        
        arg 1 is "user":
            if {kitcd.user.%player%} is true:
                wait 3 ticks
                add 1 leather helmet of protection 1 named "&8[USER]" to player
                wait 3 ticks
                add 1 leather chestplate of protection 1 named "&8[USER]" to player
                wait 3 ticks
                add 1 leather leggings of protection 1 named "&8[USER]" to player
                wait 3 ticks
                add 1 leather boots of protection 1 named "&8[USER]" to player
                wait 3 ticks
                add 1 wooden sword named "&8[USER]" to player
                wait 3 ticks
                add 1 stone pickaxe of efficiency 5, unbreaking 3 named "&8[USER]" to player
                wait 3 ticks
                add 1 stone axe of efficiency 5 named "&8[USER]" to player
                wait 3 ticks
                add 1 stone shovel of efficiency 5 named "&8[USER]" to player
                wait 3 ticks
                add 30 cooked porkchop named "&8[USER]" to player
                wait 3 ticks
                add 8 oak wood named "&8[USER]" to player
                wait 3 ticks
                send "&2&lWorldCraft &7Recibiste el kit &8[USER]"
                set {kitcd.user.%player%} to false
                wait 5 minutes
                set {kitcd.user.%player%} to true
                send "&2&lWorldCraft &7Ahora puedes volver a elegir el kit &8[USER]"
                stop
            else if {kitcd.user.%player%} is false:
                send "&2&lWorldCraft &7Para tomar de nuevo este kit, debes esperar por lo menos 5 minutos desde su recogida."
                stop
            
        arg 1 is "novato":
            if player has permission "world.kit.novato":
                if {kitcd.novato.%player%} is true:
                    wait 3 ticks
                    add 1 leather helmet of protection 2 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 chain chestplate of protection 1 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 leather leggings of protection 2 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 chain boots of protection 1 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 stone sword of sharpness 1 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 iron pickaxe of efficiency 3, fortune 3, unbreaking 10 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 iron axe of efficiency 3 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 iron shovel of efficiency 3, unbreaking 3 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 30 cooked porkchop named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 8 oak wood named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 8 spruce wood named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    send "&2&lWorldCraft&7 Recibiste el kit &7[Nov&8ato]"
                    set {kitcd.novato.%player%} to false
                    wait 10 minutes
                    set {kitcd.novato.%player%} to true
                    send "&2&lWorldCraft &7Ahora puedes volver a elegir el kit &7[Nov&8ato]"
                    stop
                else if {kitcd.novato.%player%} is false:
                    send "&2&lWorldCraft &7Para tomar de nuevo este kit, debes esperar por lo menos 10 minutos desde su recogida."
                    stop
            else:
                send "&2&lWorldCraft &7Para tomar este kit tienes que tener rango &7[Nov&8ato]"
                stop
        arg 1 is "profesional":
            if player has permission "world.kit.profesional":
                if {kitcd.profesional.%player%} is true:
                    set {_profesional} to "&8[Profe&3sional]"
                    wait 3 ticks
                    add 1 iron helmet of protection 1, unbreaking 1 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron chestplate of protection 1, unbreaking 1 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron leggings of protection 1, unbreaking 1 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron boots of protection 1, unbreaking 1 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron sword of sharpness 1, unbreaking 1, looting 2 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron pickaxe of efficiency 5, unbreaking 10, fortune 5 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron axe of efficiency 5, unbreaking 10 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron shovel of efficiency 5, unbreaking 10, fortune 5 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 36 cooked porkchop named "%{_profesional}%" to player
                    wait 3 ticks
                    add 16 oak wood named "%{_profesional}%" to player
                    wait 3 ticks
                    add 64 cobblestone named "%{_profesional}%" to player
                    wait 3 ticks
                    send "&2&lWorldCraft &7Recibiste el kit %{_profesional}%"
                    set {kitcd.profesional.%player%} to false
                    wait 20 minutes
                    set {kitcd.profesional.%player%} to true
                    send "&2&lWorldCraft &7Ahora puedes volver a elegir el kit %{_profesional}%"
                    stop
                else if {kitcd.profesional.%player%} is false:
                    send "&2&lWorldCraft &7Para tomar de nuevo este kit, debes esperar por lo menos 20 minutos desde su recogida."
                    stop
            else:
                send "&2&lWorldCraft &7Para tomar este kit tienes que tener rango &8[Profe&3sional]"
                stop
        arg 1 is "experto":
            if player has permission "world.kit.experto":
                if {kitcd.experto.%player%} is true:
                    set {_experto} to "&6[Experto]"
                    wait 3 ticks
                    add 1 diamond helmet of unbreaking 1 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 iron chestplate of protection 1, unbreaking 3 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 diamond leggings of unbreaking 1 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 iron boots of protection 1, unbreaking 3 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 iron sword of sharpness 3, unbreaking 3, fire aspect 1, looting 3 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 diamond pickaxe of efficiency 5, unbreaking 10, fortune 10 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 diamond axe of efficiency 5, unbreaking 10 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 diamond shovel of efficiency 5, unbreaking 10, fortune 10 named "%{_experto}%" to player
                    wait 3 ticks
                    add 64 cooked porkchop named "%{_experto}%" to player
                    wait 3 ticks
                    add 32 oak wood named "%{_experto}%" to player
                    wait 3 ticks
                    add 16 spruce wood named "%{_experto}%" to player
                    wait 3 ticks
                    send "&2&lWorldCraft &7Recibiste el kit %{_experto}%"
                    set {kitcd.experto.%player%} to false
                    wait 30 minutes
                    set {kitcd.experto.%player%} to true
                    send "&2&lWorldCraft &7Ahora puedes volver a elegir el kit %{_experto}%"
                    stop
                else if {kitcd.experto.%player%} is false:
                    send "&2&lWorldCraft &7Para tomar de nuevo este kit, debes esperar por lo menos 30 minutos desde su recogida."
                    stop
            else:
                send "&2&lWorldCraft &7Para tomar este kit tienes que tener rango &6[Experto]"
                stop
        arg 1 is "civil":
            if player has permission "world.kit.civil":
                if {kitcd.civil.%player%} is true:
                    set {_civil} to "&9[Ci&fvil]"
                    wait 3 ticks
                    add 1 iron helmet of protection 3, unbreaking 10 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 diamond chestplate of protection 3, unbreaking 5 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 chain leggings of protection 5, unbreaking 20 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 diamond boots of protection 3, feather falling 3, unbreaking 10 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 diamond sword of sharpness 3, unbreaking 5, fire aspect 1 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 diamond pickaxe of efficiency 7, unbreaking 7, fortune 7 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 diamond axe of efficiency 7, unbreaking 7 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 diamond shovel of efficiency 7, unbreaking 7 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 stick of knockback 5 named "%{_civil}%" to player
                    wait 3 ticks
                    add 64 cooked porkchop named "%{_civil}%" to player
                    set {kitcd.civil.%player%} to false
                    send "&2&lWorldCraft&7 Recibiste el kit %{_civil}%"
                    wait 30 minutes
                    set {kitcd.civil.%player%} to true
                    send "&2&lWorldCraft &7Ahora puedes volver a tomar el kit %{_civil}%"
                    stop
                else if {kitcd.civil.%player%} is false:
                    send "&2&lWorldCraft &7Debes esperar 30 minutos desde la recogida del kit para volverlo a tomar."
                    stop
            else:
                send "&2&lWorldCraft &7Para tomar este kit tienes que ser rango &9[Ci&fvil]"
                stop
        arg 1 is "vip":
            if player has permission "world.kit.vip":
                if {kitcd.vip.%player%} is true:
                    set {_vip} to "&a[VIP]"
                    wait 3 ticks
                    add 1 diamond helmet of protection 471, unbreaking 817 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond chestplate of protection 391, unbreaking 728, thorns 5 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond leggings of protection 391, unbreaking 801, thorns 5 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond boots of protection 500, unbreaking 900 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond sword of sharpness 41, unbreaking 312, fire aspect 5 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond pickaxe of efficiency 1122, unbreaking 213, fortune 100 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond axe of efficiency 1122, unbreaking 213, fortune 50 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond shovel of efficiency 1122, unbreaking 300, fortune 100 named "%{_vip}%" to player
                    wait 3 ticks
                    add 16 golden apple:1 to player
                    wait 3 ticks
                    add 64 quartz block to player            
           
on inventory click:
    clicked inventory isn't player's inventory
    if inventory name of player's current inventory is "&2&lClases":
        event-slot = air:
            close inventory of player
            wait 3 ticks
            execute player command "kit"
 
        #kit user#
 
        if clicked slot is 10:
            close inventory of player
            stop
        if clicked slot is 19:
            close inventory of player
            execute player command "kit user"
            stop
        
        #kit novato#
    
        if clicked slot is 11:
            close inventory of player
            stop
        if clicked slot is 20:
            close inventory of player
            execute player command "kit novato"
            stop
        
        #kit profesional#
    
        if clicked slot is 12:
            close inventory of player
            stop
        if clicked slot is 21:
            close inventory of player
            execute player command "kit profesional"
            stop
        
        #kit experto#
        if clicked slot is 13:
            close inventory of player
            stop
        if clicked slot is 22:
            close inventory of player
            execute player command "kit experto"
            stop
        
        #kit civil#
        if clicked slot is 14:
            close inventory of player
            stop
        if clicked slot is 23:
            close inventory of player
            execute player command "kit civil"
            stop

4. Profile skript.
code_language.skript:
command /perfil [<offline player>]:
    trigger:
        if arg 1 is not set:
            open chest with 5 rows named "&aTu Perfil" to player
            set {_n} to 0
            loop 10 times:
                set slot {_n} of player's current inventory to black stained glass pane named "&8"
                add 1 to {_n}
            set slot 10 of player's current inventory to player's skull named "&eNombre: &6%player%"
            set slot 11 of player's current inventory to paper named "&eRango: &6%coloured player's prefix%"
            if player does not have permission "world.chat.suscrito":
                set slot 12 of player's current inventory to coal named "&eSuscrito: &4&l✘"
            else:
                set slot 12 of player's current inventory to diamond named "&eSuscrito: &a&l✓"
            set slot 13 of player's current inventory to stone named "&eBloques minados: &6%{bminados::%player%}%"
            set slot 14 of player's current inventory to iron ore named "&ePuntos de Recompensas: &6%{recompensas.de.bloquesminados.%player%}%"
            set slot 15 of player's current inventory to experience bottle named "&eXP: &6%{worldexp::%player%}%"
            set slot 16 of player's current inventory to grass block named "&eWorld Coins: &6%{worldcoins.%player%}%"
            set slot 17 of player's current inventory to black stained glass pane named "&8"
            set slot 18 of player's current inventory to black stained glass pane named "&8"
            set slot 20 of player's current inventory to gold block named "&eDinero: &6%player's balance%"
            set slot 21 of player's current inventory to 31:2 named "&eAsesinatos: &6%{asesinatos::%player%}%"
            set slot 22 of player's current inventory to 32 named "&eMuertes: &6%{muertes::%player%}%"
            set slot 26 of player's current inventory to black stained glass pane named "&8"
            set {_pene} to 26
            loop 10 times:
                set slot {_pene} of player's current inventory to black stained glass pane named "&8"
                add 1 to {_pene}
            set slot 40 of player's current inventory to 166 named "&c&lCierra inventario."
            stop
        else:
            if player has permission "world.perfil":
                open chest with 5 rows named "&aPerfil de %arg 1%" to player
                set {_n} to 0
                loop 10 times:
                    set slot {_n} of player's current inventory to black stained glass pane named "&8"
                    add 1 to {_n}
                set slot 10 of player's current inventory to arg 1's skull named "&eNombre: &6%arg 1%"
                set slot 11 of player's current inventory to paper named "&eRango: &6%coloured arg 1's prefix%"
                if {suscripcion.%arg 1%} = true:
                    set slot 12 of player's current inventory to diamond named "&eSuscrito: &a&l✓"
                else:
                    set slot 12 of player's current inventory to coal named "&eSuscrito: &4&l✘"
                set slot 13 of player's current inventory to stone named "&eBloques minados: &6%{bminados::%arg 1%}%"
                set slot 14 of player's current inventory to iron ore named "&ePuntos de Recompensas: &6%{recompensas.de.bloquesminados.%arg 1%}%"
                set slot 15 of player's current inventory to experience bottle named "&eXP: &6%{worldexp::%arg 1%}%"
                set slot 16 of player's current inventory to grass block named "&eWorld Coins: &6%{worldcoins.%arg 1%}%"
                set slot 17 of player's current inventory to black stained glass pane named "&8"
                set slot 18 of player's current inventory to black stained glass pane named "&8"
                set slot 20 of player's current inventory to gold block named "&eDinero: &6%arg 1's balance%"
                set slot 21 of player's current inventory to 31:2 named "&eAsesinatos: &6%{asesinatos::%arg 1%}%"
                set slot 22 of player's current inventory to 32 named "&eMuertes: &6%{muertes::%arg 1%}%"
                set slot 40 of player's current inventory to 166 named "&c&lCierra inventario."
                set slot 26 of player's current inventory to black stained glass pane named "&8"
                set {_pene} to 26
                loop 10 times:
                    set slot {_pene} of player's current inventory to black stained glass pane named "&8"
                    add 1 to {_pene}
                set slot 40 of player's current inventory to 166 named "&c&lCierra inventario."
                stop
            else:
                send "&cRequieres &a[VIP]&c para ejecutar este comando."
                stop
            
on inventory click:
    clicked inventory isn't player's inventory
    if inventory name of player's current inventory is "&aTu Perfil":
        close player's inventory
        stop
    
on inventory click:
    clicked inventory is not player's inventory
    if inventory name of player's current inventory contains "&aPerfil de":
        close player's inventory
        stop

5. My skript of rankcolor (Idea taken from the famous hypixel server).
code_language.skript:
on command "/rankcolor":
    cancel event
    if player has permission "world.rankcolor":
        open chest with 5 rows named "&8Cambia de color tu signo ""&6+&8""." to player
        set slot 10 of player's current inventory to orange dye named "&fCambialo a: &a[VIP&6+&a]"
        set slot 11 of player's current inventory to rose red named "&fCambialo a: &a[VIP&c+&a]"
        set slot 12 of player's current inventory to light blue dye named "&fCambialo a: &a[VIP&b+&a]"
        set slot 13 of player's current inventory to yellow dye named "&fCambialo a: &a[VIP&e+&a]"
        set slot 14 of player's current inventory to pink dye named "&fCambialo a: &a[VIP&d+&a]"
        set slot 15 of player's current inventory to white dye named "&fCambialo a: &a[VIP&f+&a]"
        set slot 16 of player's current inventory to blue dye named "&fCambialo a: &a[VIP&9+&a]"
        set slot 19 of player's current inventory to green dye named "&fCambialo a: &a[VIP&2+&a]"
        set slot 20 of player's current inventory to redstone named "&fCambialo a: &a[VIP&4+&a]"
        set slot 21 of player's current inventory to cyan dye named "&fCambialo a: &a[VIP&3+&a]"
        set slot 22 of player's current inventory to purple dye named "&fCambialo a: &a[VIP&5+&a]"
        set slot 23 of player's current inventory to light gray dye named "&fCambialo a: &a[VIP&7+&a]"
        set slot 24 of player's current inventory to gray dye named "&fCambialo a: &a[VIP&8+&a]"
        set slot 25 of player's current inventory to black dye named "&fCambialo a: &a[VIP&0+&a]"
        set slot 39 of player's current inventory to emerald named "&fAhora tienes puesto: &a%coloured player's prefix%"
        set slot 40 of player's current inventory to 166 named "&cCierra inventario."
        set slot 41 of player's current inventory to paper named "&f&lInformación."
    else:
        send "{@p} Este comando solo lo pueden activar los jugadores con rango &a[VIP&6+&a]"
        stop
            
            
on inventory click:
    clicked inventory isn't player's inventory
    if inventory name of player's current inventory is "&8Cambia de color tu signo ""&6+&8"".":
        if clicked slot is 10:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 6"
            stop
        else if clicked slot is 11:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor c"
            stop
        else if clicked slot is 12:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor b"
            stop
        else if clicked slot is 13:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor e"
            stop
        else if clicked slot is 14:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor d"
            stop
        else if clicked slot is 15:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor f"
            stop
        else if clicked slot is 16:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 9"
            stop
        else if clicked slot is 19:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 2"
            stop
        else if clicked slot is 20:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 4"
            stop
        else if clicked slot is 21:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 3"
            stop
        else if clicked slot is 22:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 5"
            stop
        else if clicked slot is 23:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 7"
            stop
        else if clicked slot is 24:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 8"
            stop
        else if clicked slot is 25:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 0"
            stop
        
        
        
        
        
        else if clicked slot is 39:
            close inventory of player
            wait a tick
            make player execute command "rankcolor"
            stop
        else if clicked slot is 40:
            close inventory of player
            send "{@p} Cerrando inventario..."
            stop
        else if clicked slot is 41:
            close inventory of player
            wait a tick
            make player execute command "bminadosrankcolor"
            stop
        event-slot = air:
            close inventory of player
            wait a tick
            make player execute command "rankcolor"
            stop

6. Warp GUI skript.
code_language.skript:
on command "/warps":
    cancel event
    execute sender command "warp"

command /warp [<text>]:
    trigger:
        arg 1 is not set:
            open chest with 4 rows named "&0&lLista de warps" to player
            set {_n} to 0
            loop 10 times:
                set slot {_n} of player's current inventory to black stained glass pane named "&8"
                add 1 to {_n}
            set slot 10 of player's current inventory to stone pickaxe named "&7&lMinas"
            set slot 20 of player's current inventory to stone slab named "&a&lPlots"
            set slot 12 of player's current inventory to grass block named "&2&lSurvival"
            set slot 22 of player's current inventory to diamond sword named "&4&lP&c&lv&4&lP"
            set {_n.2} to 26
            set slot 17 of player's current inventory to black stained glass pane named "&8"
            set slot 18 of player's current inventory to black stained glass pane named "&8"
            loop 10 times:
                set slot {_n.2} of player's current inventory to black stained glass pane named "&8"
                add 1 to {_n.2}
            stop
        else if arg 1 is set:
            make console execute command "essentials:ewarp %arg 1% %player%"
            stop
        
command /minas [<text>]:
    trigger:
        arg 1 is not set:
            open chest with 4 rows named "&0&lLista de &6&lMinas" to player
            set {_n} to 0
            loop 10 times:
                set slot {_n} of player's current inventory to bedrock named "&8"
                add 1 to {_n}
            set slot 10 of player's current inventory to coal ore named "&8&lMina User"
            set slot 11 of player's current inventory to coal ore named "&8&lMina Novato"
            set slot 12 of player's current inventory to coal ore named "&8&lMina Profesional"
            set slot 13 of player's current inventory to coal ore named "&8&lMina Experto"
            set slot 14 of player's current inventory to iron ore named "&7&lMina Civil"
            set slot 15 of player's current inventory to iron ore named "&7&lMina Prisionero"
            set slot 16 of player's current inventory to iron ore named "&7&lMina Bravucon"
            set slot 17 of player's current inventory to bedrock named "&8"
            set slot 18 of player's current inventory to bedrock named "&8"
            set slot 19 of player's current inventory to iron ore named "&7&lMina Buscado"
            set slot 20 of player's current inventory to iron ore named "&7&lMina Asesino"
            set slot 21 of player's current inventory to gold ore named "&5&lMina Serial"
            set slot 22 of player's current inventory to gold ore named "&2&lMina Narco"
            set {_n} to 26
            loop 4 times:
                set slot {_n} of player's current inventory to bedrock named "&8"
                add 1 to {_n}
            set slot 30 of player's current inventory to diamond pickaxe named "&7&lMina&c&lPvP"
            set slot 31 of player's current inventory to arrow named "&eVolver al inventario de warps"
            set slot 32 of player's current inventory to gold pickaxe named "&e&lMinas&6&lVips"
            set slot 33 of player's current inventory to bedrock named "&8"
            set slot 34 of player's current inventory to bedrock named "&8"
            set slot 35 of player's current inventory to 425:10 named "&aSiguiente página"
            send "&aAbriendo lista de minas..."
            stop
        arg 1 is set:
            arg 1 is "2":
                if player does not have permission "skript.*":
                    send "&cEste lado de las minas no está listo!"
                    stop
                else:
                    open chest with 4 rows named "&0&lLista de &6&lMinas 2" to player
                    set {_n} to 0
                    loop 10 times:
                        set slot {_n} of player's current inventory to bedrock named "&8"
                        add 1 to {_n}
                    set slot 10 of player's current inventory to coal block named "&8&l&ki&8&lMina Novato P1 &8&l&ki"
                    set slot 11 of player's current inventory to coal block named "&8&l&ki&8&lMina Profesional P1 &8&l&ki"
        
        
on inventory click:
    inventory name of player's current inventory is "&0&lLista de warps":
        event-slot = air:
            close inventory of player
            wait 3 ticks
            execute player command "warp"
        event-slot = black stained glass pane:
            close player's inventory
            wait 3 ticks
            execute player command "warp"
        event-slot != air:
            clicked slot is 10:
                close inventory of player
                wait 3 ticks
                execute player command "minas"
            clicked slot is 20:
                close inventory of player
                wait 3 ticks
                execute player command "warp plots"
            clicked slot is 12:
                close inventory of player
                wait 3 ticks
                execute player command "warp survival"
            clicked slot is 22:
                close inventory of player
                wait 3 ticks
                execute player command "warp pvp"
            
            
on inventory click:
    clicked inventory isn't player's inventory
    inventory name of player's current inventory is "&0&lLista de &6&lMinas":
        event-slot = bedrock:
            close inventory of player
            wait 3 ticks
            execute player command "minas"
        event-slot != bedrock:
            clicked slot is 10:
                close inventory of player
                wait 3 ticks
                execute player command "warp mina"
            clicked slot is 11:
                close inventory of player
                wait 3 ticks
                execute player command "warp novato"
            clicked slot is 12:
                close inventory of player
                wait 3 ticks
                execute player command "warp profesional"
            clicked slot is 13:
                close inventory of player
                wait 3 ticks
                execute player command "warp experto"
            clicked slot is 14:
                close inventory of player
                wait 3 ticks
                execute player command "warp civil"
            clicked slot is 15:
                close inventory of player
                wait 3 ticks
                execute player command "warp prisionero"
            clicked slot is 16:
                close inventory of player
                wait 3 ticks
                execute player command "warp bravucon"
            clicked slot is 19:
                close inventory of player
                wait 3 ticks
                execute player command "warp buscado"
            clicked slot is 20:
                close inventory of player
                wait 3 ticks
                execute player command "warp asesino"
            clicked slot is 21:
                close inventory of player
                wait 3 ticks
                execute player command "warp serial"
            clicked slot is 22:
                close inventory of player
                wait 3 ticks
                execute player command "warp narco"
            clicked slot is 30:
                close inventory of player
                wait 3 ticks
                execute player command "warp minapvp"
            clicked slot is 31:
                close inventory of player
                wait 3 ticks
                execute player command "warp"
            clicked slot is 32:
                close inventory of player
                wait 3 ticks
                execute player command "warp minavip"
            clicked slot is 35:
                close inventory of player
                wait 3 ticks
                execute player command "minas 2"
And those are the skript that contain a code regarding the inventory.
To end, now im gonna show addons that i has on my server:
- MundoSk
- Skellett
- SkQuery
- SkRayFall
- skript-mirror
- SkUtilities
- TuSKe.
.
[doublepost=1555450460,1555450062][/doublepost]
You could try to see if any of your scripts caused it by disabling them all, or disabling some plugins which could cause that.
In my server only have 28 plugins.
And the version of vault plugin from my server is: 1.5.3-b37 (Although I don't know if the version of the vault will help here.)
 
Last edited:
Spigot 1.8.8
Skript dev-36
So, now i gonna show part of the codes that contains inventories code.

1. Coins of my server "WorldCoins":

code_language.skript:
command /worldcoins [<text>]:
    trigger:
        arg 1 is not set:
            set {_int} to 27
            open chest with 5 rows named "&e&lWorldCoins" to player
            wait 1 tick
            set slot 10 of player's current inventory to iron ingot named "&eCompra el rango &a[VIP]&e por 500 WorldCoins!" # with lore "&eSi tienes &a500&e WorldCoins puedes comprar el rango &a[VIP]&e ahora mismo!"
            set slot 16 of player's current inventory to diamond chestplate named "&eCompra el &6LEGENDARIO&f &8&l&kii&b&lWorldSet&8&l&kii&e por 150 WorldCoins!"
            set slot 20 of player's current inventory to gold ingot named "&eCompra el rango &a[VIP&6+&a]&e por 1500 WorldCoins!"
            set slot 40 of player's current inventory to chest named "&cCerrar inventario."
            set slot 41 of player's current inventory to emerald named "&eWorldCoins actuales: &a%{worldcoins.%player%}%"
           
        arg 1 is "vip":
            if {worldcoins.%player%} >= 500:
                send "&bFelicidades!"
                send "&bCompraste el rango &a[VIP]&b!"
                execute console command "pex user %player% group set vip"
                remove 500 from {worldcoins.%player%}
            else:
                send "&cNo tienes WorldCoins suficientes para comprar el rango &a[VIP]"
                send "&f"
                send "&cVe a la tienda para comprar WorldCoins: http://tienda-worldcraft.buycraft.net/category/1296449"
                stop
           
        arg 1 is "vip+":
            if {worldcoins.%player%} >= 1500:
                send "&bFelicidades!"
                send "&bCompraste el rango &a[VIP&6+&a]&b!"
                execute console command "pex user %player% group set vip+"
                remove 1500 from {worldcoins.%player%}
            else:
                send "&cNo tienes WorldCoins suficientes para comprar el rango &a[VIP&6+&a]"
                send "&f"
                send "&cVe a la tienda para comprar WorldCoins: http://tienda-worldcraft.buycraft.net/category/1296449"
                stop
        arg 1 is "worldset":
            if {worldcoins.%player%} >= 150:
                send "&bFelicidades!"
                send "&bCompraste el &8&l&ki&b&lWorldSet&8&l&kii&b!"
                remove 150 from {worldcoins.%player%}
                add 1 diamond helmet of protection 80, unbreaking 100 named "&8&l&kii&b&lWorldSet&8&l&kii" to player
                wait 4 ticks
                add 1 diamond chestplate of protection 80, unbreaking 100 named "&8&l&kii&b&lWorldSet&8&l&kii" to player
                wait 4 ticks
                add 1 diamond leggings of protection 80, unbreaking 100 named "&8&l&kii&b&lWorldSet&8&l&kii" to player
                wait 4 ticks
                add 1 diamond boots of protection 80, unbreaking 100 named "&8&l&kii&b&lWorldSet&8&l&kii" to player
                wait 4 ticks
                add 1 diamond sword of sharpness 20, unbreaking 50, looting 10 named "&8&l&kii&b&lWorldSet&8&l&kii" to player
                wait 4 ticks
                add 1 diamond pickaxe of efficiency 200, unbreaking 800, fortune 80 named "&8&l&kii&b&lWorldSet&8&l&kii" to player
            else:
                send "&cNo tienes WorldCoins suficientes para comprar el &8&l&kii&b&lWorldSet&8&l&kii"
                send "&f"
                send "&cVe a la tienda para comprar WorldCoins: http://tienda-worldcraft.buycraft.net/category/1296449"
                stop
   
on inventory click:
    clicked inventory isn't player's inventory
    if inventory name of player's current inventory is "&e&lWorldCoins":
        if clicked slot is 10:
            close inventory of player
            execute player command "worldcoins vip"
            stop
        else if clicked slot is 16:
            close inventory of player
            execute player command "worldcoins worldset"
            stop
        else if clicked slot is 20:
            close inventory of player
            execute player command "worldcoins vip+"
            stop
        else if clicked slot is 40:
            close inventory of player
            stop
        else if clicked slot is 41:
            close inventory of player
            wait 5 ticks
            execute player command "worldcoins"
            stop

2. A uncompleted sistem of level in skript.
code_language.skript:
on command "premios":
    cancel event
    sender != player:
        send "Comando ejecutable por jugadores." to console
    sender = player:
        open chest with 6 rows named "&e&lPremios por tus WorldEXP!" to player
        wait a tick
   
        set {_cofre.10} to chest named "&6Requiere WorldLevel 2!"
        set line 2 of lore of {_cofre.10} to "&3+10.000 de dinero."
        set line 4 of lore of {_cofre.10} to "&310 de WorldEXP para llegar a este nivel."
        set slot 0 of player's current inventory to {_cofre.10}
   
        set {_cofre.20} to chest named "&6Requiere WorldLevel 3!"
        set line 2 of lore of {_cofre.20} to "&3+20.000 de dinero."
        set line 4 of lore of {_cofre.20} to "&320 de WorldEXP para llegar a este nivel."
        set slot 1 of player's current inventory to {_cofre.20}
   
        set {_cofre.30} to chest named "&6Requiere WorldLevel 4!"
        set line 2 of lore of {_cofre.30} to "&3Booster X2 de una hora."
        set line 4 of lore of {_cofre.30} to "&330 de WorldEXP para llegar a este nivel."
        set slot 2 of player's current inventory to {_cofre.30}
   
        set {_cofre.40} to chest named "&6Requiere WorldLevel 5!"
        set line 2 of lore of {_cofre.40} to "&3+50.000 de dinero."
        set line 4 of lore of {_cofre.40} to "&340 de WorldEXP para llegar a este nivel."
        set slot 3 of player's current inventory to {_cofre.40}
   
        set {_cofre.70} to chest named "&6Requiere WorldLevel 6!"
        set line 2 of lore of {_cofre.70} to "&3+70.000 de dinero."
        set line 4 of lore of {_cofre.70} to "&370 de WorldEXP para llegar a este nivel."
        set slot 4 of player's current inventory to {_cofre.70}
   
        set {_cofre.100} to chest named "&6Requiere WorldLevel 7!"
        set line 2 of lore of {_cofre.100} to "&3+70.000 de dinero."
        set line 4 of lore of {_cofre.100} to "&3100 de WorldEXP para llegar a este nivel."
        set slot 5 of player's current inventory to {_cofre.100}
   
        set {_cofre.120} to chest named "&6Requiere WorldLevel 8!"
        set line 2 of lore of {_cofre.120} to "&3+100.000 de dinero."
        set line 4 of lore of {_cofre.120} to "&3120 de WorldEXP para llegar a este nivel."
        set slot 6 of player's current inventory to {_cofre.120}
   
        set {_cofre.200} to chest named "&6Requiere WorldLevel 9!"
        set line 2 of lore of {_cofre.200} to "&3+120.000 de dinero."
        set line 4 of lore of {_cofre.200} to "&3200 de WorldEXP para llegar a este nivel."
        set slot 7 of player's current inventory to {_cofre.200}
   
        set {_cofre.250} to chest named "&6Requiere WorldLevel 10!"
        set line 2 of lore of {_chest.250} to "&3A los rangos &a[VIP&6+&a]&3 se les dará el &c+&3"
        set line 3 of lore of {_cofre.250} to "&3para su rango."
        set line 5 of lore of {_cofre.250} to "&3250 de WorldEXP para llegar a este nivel."
        set slot 8 of player's current inventory to {_cofre.250}

3. A uncompleted skript kit from my server.
code_language.skript:
command /kit [<text>]:
    trigger:
        arg 1 is not set:
            open chest with 6 rows named "&2&lClases" to player
            set {_c} to "&eClickea aquí para tomar este kit!"
            wait a tick
            set slot 10 of player's current inventory to coal block named "&fKit &8[USER]"
            set slot 19 of player's current inventory to gray stained glass pane named "%{_c}%"
            set slot 11 of player's current inventory to lapis block named "&fKit &7[Nov&8ato]"
            set slot 20 of player's current inventory to blue stained glass pane named "%{_c}%"
            set slot 12 of player's current inventory to redstone block named "&fKit &8[Profe&3sional]"
            set slot 21 of player's current inventory to red stained glass pane named "%{_c}%"
            set slot 13 of player's current inventory to iron block named "&fKit &6[Experto]"
            set slot 22 of player's current inventory to white stained glass pane named "%{_c}%"
            set slot 14 of player's current inventory to gold block named "&fKit &9[Ci&fvil]"
            set slot 23 of player's current inventory to yellow stained glass pane named "%{_c}%"
       
        arg 1 is "user":
            if {kitcd.user.%player%} is true:
                wait 3 ticks
                add 1 leather helmet of protection 1 named "&8[USER]" to player
                wait 3 ticks
                add 1 leather chestplate of protection 1 named "&8[USER]" to player
                wait 3 ticks
                add 1 leather leggings of protection 1 named "&8[USER]" to player
                wait 3 ticks
                add 1 leather boots of protection 1 named "&8[USER]" to player
                wait 3 ticks
                add 1 wooden sword named "&8[USER]" to player
                wait 3 ticks
                add 1 stone pickaxe of efficiency 5, unbreaking 3 named "&8[USER]" to player
                wait 3 ticks
                add 1 stone axe of efficiency 5 named "&8[USER]" to player
                wait 3 ticks
                add 1 stone shovel of efficiency 5 named "&8[USER]" to player
                wait 3 ticks
                add 30 cooked porkchop named "&8[USER]" to player
                wait 3 ticks
                add 8 oak wood named "&8[USER]" to player
                wait 3 ticks
                send "&2&lWorldCraft &7Recibiste el kit &8[USER]"
                set {kitcd.user.%player%} to false
                wait 5 minutes
                set {kitcd.user.%player%} to true
                send "&2&lWorldCraft &7Ahora puedes volver a elegir el kit &8[USER]"
                stop
            else if {kitcd.user.%player%} is false:
                send "&2&lWorldCraft &7Para tomar de nuevo este kit, debes esperar por lo menos 5 minutos desde su recogida."
                stop
           
        arg 1 is "novato":
            if player has permission "world.kit.novato":
                if {kitcd.novato.%player%} is true:
                    wait 3 ticks
                    add 1 leather helmet of protection 2 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 chain chestplate of protection 1 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 leather leggings of protection 2 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 chain boots of protection 1 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 stone sword of sharpness 1 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 iron pickaxe of efficiency 3, fortune 3, unbreaking 10 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 iron axe of efficiency 3 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 1 iron shovel of efficiency 3, unbreaking 3 named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 30 cooked porkchop named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 8 oak wood named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    add 8 spruce wood named "&7[Nov&8ato]" to player
                    wait 3 ticks
                    send "&2&lWorldCraft&7 Recibiste el kit &7[Nov&8ato]"
                    set {kitcd.novato.%player%} to false
                    wait 10 minutes
                    set {kitcd.novato.%player%} to true
                    send "&2&lWorldCraft &7Ahora puedes volver a elegir el kit &7[Nov&8ato]"
                    stop
                else if {kitcd.novato.%player%} is false:
                    send "&2&lWorldCraft &7Para tomar de nuevo este kit, debes esperar por lo menos 10 minutos desde su recogida."
                    stop
            else:
                send "&2&lWorldCraft &7Para tomar este kit tienes que tener rango &7[Nov&8ato]"
                stop
        arg 1 is "profesional":
            if player has permission "world.kit.profesional":
                if {kitcd.profesional.%player%} is true:
                    set {_profesional} to "&8[Profe&3sional]"
                    wait 3 ticks
                    add 1 iron helmet of protection 1, unbreaking 1 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron chestplate of protection 1, unbreaking 1 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron leggings of protection 1, unbreaking 1 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron boots of protection 1, unbreaking 1 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron sword of sharpness 1, unbreaking 1, looting 2 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron pickaxe of efficiency 5, unbreaking 10, fortune 5 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron axe of efficiency 5, unbreaking 10 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 1 iron shovel of efficiency 5, unbreaking 10, fortune 5 named "%{_profesional}%" to player
                    wait 3 ticks
                    add 36 cooked porkchop named "%{_profesional}%" to player
                    wait 3 ticks
                    add 16 oak wood named "%{_profesional}%" to player
                    wait 3 ticks
                    add 64 cobblestone named "%{_profesional}%" to player
                    wait 3 ticks
                    send "&2&lWorldCraft &7Recibiste el kit %{_profesional}%"
                    set {kitcd.profesional.%player%} to false
                    wait 20 minutes
                    set {kitcd.profesional.%player%} to true
                    send "&2&lWorldCraft &7Ahora puedes volver a elegir el kit %{_profesional}%"
                    stop
                else if {kitcd.profesional.%player%} is false:
                    send "&2&lWorldCraft &7Para tomar de nuevo este kit, debes esperar por lo menos 20 minutos desde su recogida."
                    stop
            else:
                send "&2&lWorldCraft &7Para tomar este kit tienes que tener rango &8[Profe&3sional]"
                stop
        arg 1 is "experto":
            if player has permission "world.kit.experto":
                if {kitcd.experto.%player%} is true:
                    set {_experto} to "&6[Experto]"
                    wait 3 ticks
                    add 1 diamond helmet of unbreaking 1 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 iron chestplate of protection 1, unbreaking 3 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 diamond leggings of unbreaking 1 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 iron boots of protection 1, unbreaking 3 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 iron sword of sharpness 3, unbreaking 3, fire aspect 1, looting 3 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 diamond pickaxe of efficiency 5, unbreaking 10, fortune 10 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 diamond axe of efficiency 5, unbreaking 10 named "%{_experto}%" to player
                    wait 3 ticks
                    add 1 diamond shovel of efficiency 5, unbreaking 10, fortune 10 named "%{_experto}%" to player
                    wait 3 ticks
                    add 64 cooked porkchop named "%{_experto}%" to player
                    wait 3 ticks
                    add 32 oak wood named "%{_experto}%" to player
                    wait 3 ticks
                    add 16 spruce wood named "%{_experto}%" to player
                    wait 3 ticks
                    send "&2&lWorldCraft &7Recibiste el kit %{_experto}%"
                    set {kitcd.experto.%player%} to false
                    wait 30 minutes
                    set {kitcd.experto.%player%} to true
                    send "&2&lWorldCraft &7Ahora puedes volver a elegir el kit %{_experto}%"
                    stop
                else if {kitcd.experto.%player%} is false:
                    send "&2&lWorldCraft &7Para tomar de nuevo este kit, debes esperar por lo menos 30 minutos desde su recogida."
                    stop
            else:
                send "&2&lWorldCraft &7Para tomar este kit tienes que tener rango &6[Experto]"
                stop
        arg 1 is "civil":
            if player has permission "world.kit.civil":
                if {kitcd.civil.%player%} is true:
                    set {_civil} to "&9[Ci&fvil]"
                    wait 3 ticks
                    add 1 iron helmet of protection 3, unbreaking 10 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 diamond chestplate of protection 3, unbreaking 5 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 chain leggings of protection 5, unbreaking 20 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 diamond boots of protection 3, feather falling 3, unbreaking 10 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 diamond sword of sharpness 3, unbreaking 5, fire aspect 1 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 diamond pickaxe of efficiency 7, unbreaking 7, fortune 7 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 diamond axe of efficiency 7, unbreaking 7 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 diamond shovel of efficiency 7, unbreaking 7 named "%{_civil}%" to player
                    wait 3 ticks
                    add 1 stick of knockback 5 named "%{_civil}%" to player
                    wait 3 ticks
                    add 64 cooked porkchop named "%{_civil}%" to player
                    set {kitcd.civil.%player%} to false
                    send "&2&lWorldCraft&7 Recibiste el kit %{_civil}%"
                    wait 30 minutes
                    set {kitcd.civil.%player%} to true
                    send "&2&lWorldCraft &7Ahora puedes volver a tomar el kit %{_civil}%"
                    stop
                else if {kitcd.civil.%player%} is false:
                    send "&2&lWorldCraft &7Debes esperar 30 minutos desde la recogida del kit para volverlo a tomar."
                    stop
            else:
                send "&2&lWorldCraft &7Para tomar este kit tienes que ser rango &9[Ci&fvil]"
                stop
        arg 1 is "vip":
            if player has permission "world.kit.vip":
                if {kitcd.vip.%player%} is true:
                    set {_vip} to "&a[VIP]"
                    wait 3 ticks
                    add 1 diamond helmet of protection 471, unbreaking 817 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond chestplate of protection 391, unbreaking 728, thorns 5 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond leggings of protection 391, unbreaking 801, thorns 5 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond boots of protection 500, unbreaking 900 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond sword of sharpness 41, unbreaking 312, fire aspect 5 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond pickaxe of efficiency 1122, unbreaking 213, fortune 100 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond axe of efficiency 1122, unbreaking 213, fortune 50 named "%{_vip}%" to player
                    wait 3 ticks
                    add 1 diamond shovel of efficiency 1122, unbreaking 300, fortune 100 named "%{_vip}%" to player
                    wait 3 ticks
                    add 16 golden apple:1 to player
                    wait 3 ticks
                    add 64 quartz block to player           
          
on inventory click:
    clicked inventory isn't player's inventory
    if inventory name of player's current inventory is "&2&lClases":
        event-slot = air:
            close inventory of player
            wait 3 ticks
            execute player command "kit"
 
        #kit user#
 
        if clicked slot is 10:
            close inventory of player
            stop
        if clicked slot is 19:
            close inventory of player
            execute player command "kit user"
            stop
       
        #kit novato#
   
        if clicked slot is 11:
            close inventory of player
            stop
        if clicked slot is 20:
            close inventory of player
            execute player command "kit novato"
            stop
       
        #kit profesional#
   
        if clicked slot is 12:
            close inventory of player
            stop
        if clicked slot is 21:
            close inventory of player
            execute player command "kit profesional"
            stop
       
        #kit experto#
        if clicked slot is 13:
            close inventory of player
            stop
        if clicked slot is 22:
            close inventory of player
            execute player command "kit experto"
            stop
       
        #kit civil#
        if clicked slot is 14:
            close inventory of player
            stop
        if clicked slot is 23:
            close inventory of player
            execute player command "kit civil"
            stop

4. Profile skript.
code_language.skript:
command /perfil [<offline player>]:
    trigger:
        if arg 1 is not set:
            open chest with 5 rows named "&aTu Perfil" to player
            set {_n} to 0
            loop 10 times:
                set slot {_n} of player's current inventory to black stained glass pane named "&8"
                add 1 to {_n}
            set slot 10 of player's current inventory to player's skull named "&eNombre: &6%player%"
            set slot 11 of player's current inventory to paper named "&eRango: &6%coloured player's prefix%"
            if player does not have permission "world.chat.suscrito":
                set slot 12 of player's current inventory to coal named "&eSuscrito: &4&l✘"
            else:
                set slot 12 of player's current inventory to diamond named "&eSuscrito: &a&l✓"
            set slot 13 of player's current inventory to stone named "&eBloques minados: &6%{bminados::%player%}%"
            set slot 14 of player's current inventory to iron ore named "&ePuntos de Recompensas: &6%{recompensas.de.bloquesminados.%player%}%"
            set slot 15 of player's current inventory to experience bottle named "&eXP: &6%{worldexp::%player%}%"
            set slot 16 of player's current inventory to grass block named "&eWorld Coins: &6%{worldcoins.%player%}%"
            set slot 17 of player's current inventory to black stained glass pane named "&8"
            set slot 18 of player's current inventory to black stained glass pane named "&8"
            set slot 20 of player's current inventory to gold block named "&eDinero: &6%player's balance%"
            set slot 21 of player's current inventory to 31:2 named "&eAsesinatos: &6%{asesinatos::%player%}%"
            set slot 22 of player's current inventory to 32 named "&eMuertes: &6%{muertes::%player%}%"
            set slot 26 of player's current inventory to black stained glass pane named "&8"
            set {_pene} to 26
            loop 10 times:
                set slot {_pene} of player's current inventory to black stained glass pane named "&8"
                add 1 to {_pene}
            set slot 40 of player's current inventory to 166 named "&c&lCierra inventario."
            stop
        else:
            if player has permission "world.perfil":
                open chest with 5 rows named "&aPerfil de %arg 1%" to player
                set {_n} to 0
                loop 10 times:
                    set slot {_n} of player's current inventory to black stained glass pane named "&8"
                    add 1 to {_n}
                set slot 10 of player's current inventory to arg 1's skull named "&eNombre: &6%arg 1%"
                set slot 11 of player's current inventory to paper named "&eRango: &6%coloured arg 1's prefix%"
                if {suscripcion.%arg 1%} = true:
                    set slot 12 of player's current inventory to diamond named "&eSuscrito: &a&l✓"
                else:
                    set slot 12 of player's current inventory to coal named "&eSuscrito: &4&l✘"
                set slot 13 of player's current inventory to stone named "&eBloques minados: &6%{bminados::%arg 1%}%"
                set slot 14 of player's current inventory to iron ore named "&ePuntos de Recompensas: &6%{recompensas.de.bloquesminados.%arg 1%}%"
                set slot 15 of player's current inventory to experience bottle named "&eXP: &6%{worldexp::%arg 1%}%"
                set slot 16 of player's current inventory to grass block named "&eWorld Coins: &6%{worldcoins.%arg 1%}%"
                set slot 17 of player's current inventory to black stained glass pane named "&8"
                set slot 18 of player's current inventory to black stained glass pane named "&8"
                set slot 20 of player's current inventory to gold block named "&eDinero: &6%arg 1's balance%"
                set slot 21 of player's current inventory to 31:2 named "&eAsesinatos: &6%{asesinatos::%arg 1%}%"
                set slot 22 of player's current inventory to 32 named "&eMuertes: &6%{muertes::%arg 1%}%"
                set slot 40 of player's current inventory to 166 named "&c&lCierra inventario."
                set slot 26 of player's current inventory to black stained glass pane named "&8"
                set {_pene} to 26
                loop 10 times:
                    set slot {_pene} of player's current inventory to black stained glass pane named "&8"
                    add 1 to {_pene}
                set slot 40 of player's current inventory to 166 named "&c&lCierra inventario."
                stop
            else:
                send "&cRequieres &a[VIP]&c para ejecutar este comando."
                stop
           
on inventory click:
    clicked inventory isn't player's inventory
    if inventory name of player's current inventory is "&aTu Perfil":
        close player's inventory
        stop
   
on inventory click:
    clicked inventory is not player's inventory
    if inventory name of player's current inventory contains "&aPerfil de":
        close player's inventory
        stop

5. My skript of rankcolor (Idea taken from the famous hypixel server).
code_language.skript:
on command "/rankcolor":
    cancel event
    if player has permission "world.rankcolor":
        open chest with 5 rows named "&8Cambia de color tu signo ""&6+&8""." to player
        set slot 10 of player's current inventory to orange dye named "&fCambialo a: &a[VIP&6+&a]"
        set slot 11 of player's current inventory to rose red named "&fCambialo a: &a[VIP&c+&a]"
        set slot 12 of player's current inventory to light blue dye named "&fCambialo a: &a[VIP&b+&a]"
        set slot 13 of player's current inventory to yellow dye named "&fCambialo a: &a[VIP&e+&a]"
        set slot 14 of player's current inventory to pink dye named "&fCambialo a: &a[VIP&d+&a]"
        set slot 15 of player's current inventory to white dye named "&fCambialo a: &a[VIP&f+&a]"
        set slot 16 of player's current inventory to blue dye named "&fCambialo a: &a[VIP&9+&a]"
        set slot 19 of player's current inventory to green dye named "&fCambialo a: &a[VIP&2+&a]"
        set slot 20 of player's current inventory to redstone named "&fCambialo a: &a[VIP&4+&a]"
        set slot 21 of player's current inventory to cyan dye named "&fCambialo a: &a[VIP&3+&a]"
        set slot 22 of player's current inventory to purple dye named "&fCambialo a: &a[VIP&5+&a]"
        set slot 23 of player's current inventory to light gray dye named "&fCambialo a: &a[VIP&7+&a]"
        set slot 24 of player's current inventory to gray dye named "&fCambialo a: &a[VIP&8+&a]"
        set slot 25 of player's current inventory to black dye named "&fCambialo a: &a[VIP&0+&a]"
        set slot 39 of player's current inventory to emerald named "&fAhora tienes puesto: &a%coloured player's prefix%"
        set slot 40 of player's current inventory to 166 named "&cCierra inventario."
        set slot 41 of player's current inventory to paper named "&f&lInformación."
    else:
        send "{@p} Este comando solo lo pueden activar los jugadores con rango &a[VIP&6+&a]"
        stop
           
           
on inventory click:
    clicked inventory isn't player's inventory
    if inventory name of player's current inventory is "&8Cambia de color tu signo ""&6+&8"".":
        if clicked slot is 10:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 6"
            stop
        else if clicked slot is 11:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor c"
            stop
        else if clicked slot is 12:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor b"
            stop
        else if clicked slot is 13:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor e"
            stop
        else if clicked slot is 14:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor d"
            stop
        else if clicked slot is 15:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor f"
            stop
        else if clicked slot is 16:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 9"
            stop
        else if clicked slot is 19:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 2"
            stop
        else if clicked slot is 20:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 4"
            stop
        else if clicked slot is 21:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 3"
            stop
        else if clicked slot is 22:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 5"
            stop
        else if clicked slot is 23:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 7"
            stop
        else if clicked slot is 24:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 8"
            stop
        else if clicked slot is 25:
            close inventory of player
            wait 3 ticks
            make player execute command "bminadosrankcolor 0"
            stop
       
       
       
       
       
        else if clicked slot is 39:
            close inventory of player
            wait a tick
            make player execute command "rankcolor"
            stop
        else if clicked slot is 40:
            close inventory of player
            send "{@p} Cerrando inventario..."
            stop
        else if clicked slot is 41:
            close inventory of player
            wait a tick
            make player execute command "bminadosrankcolor"
            stop
        event-slot = air:
            close inventory of player
            wait a tick
            make player execute command "rankcolor"
            stop

6. Warp GUI skript.
code_language.skript:
on command "/warps":
    cancel event
    execute sender command "warp"

command /warp [<text>]:
    trigger:
        arg 1 is not set:
            open chest with 4 rows named "&0&lLista de warps" to player
            set {_n} to 0
            loop 10 times:
                set slot {_n} of player's current inventory to black stained glass pane named "&8"
                add 1 to {_n}
            set slot 10 of player's current inventory to stone pickaxe named "&7&lMinas"
            set slot 20 of player's current inventory to stone slab named "&a&lPlots"
            set slot 12 of player's current inventory to grass block named "&2&lSurvival"
            set slot 22 of player's current inventory to diamond sword named "&4&lP&c&lv&4&lP"
            set {_n.2} to 26
            set slot 17 of player's current inventory to black stained glass pane named "&8"
            set slot 18 of player's current inventory to black stained glass pane named "&8"
            loop 10 times:
                set slot {_n.2} of player's current inventory to black stained glass pane named "&8"
                add 1 to {_n.2}
            stop
        else if arg 1 is set:
            make console execute command "essentials:ewarp %arg 1% %player%"
            stop
       
command /minas [<text>]:
    trigger:
        arg 1 is not set:
            open chest with 4 rows named "&0&lLista de &6&lMinas" to player
            set {_n} to 0
            loop 10 times:
                set slot {_n} of player's current inventory to bedrock named "&8"
                add 1 to {_n}
            set slot 10 of player's current inventory to coal ore named "&8&lMina User"
            set slot 11 of player's current inventory to coal ore named "&8&lMina Novato"
            set slot 12 of player's current inventory to coal ore named "&8&lMina Profesional"
            set slot 13 of player's current inventory to coal ore named "&8&lMina Experto"
            set slot 14 of player's current inventory to iron ore named "&7&lMina Civil"
            set slot 15 of player's current inventory to iron ore named "&7&lMina Prisionero"
            set slot 16 of player's current inventory to iron ore named "&7&lMina Bravucon"
            set slot 17 of player's current inventory to bedrock named "&8"
            set slot 18 of player's current inventory to bedrock named "&8"
            set slot 19 of player's current inventory to iron ore named "&7&lMina Buscado"
            set slot 20 of player's current inventory to iron ore named "&7&lMina Asesino"
            set slot 21 of player's current inventory to gold ore named "&5&lMina Serial"
            set slot 22 of player's current inventory to gold ore named "&2&lMina Narco"
            set {_n} to 26
            loop 4 times:
                set slot {_n} of player's current inventory to bedrock named "&8"
                add 1 to {_n}
            set slot 30 of player's current inventory to diamond pickaxe named "&7&lMina&c&lPvP"
            set slot 31 of player's current inventory to arrow named "&eVolver al inventario de warps"
            set slot 32 of player's current inventory to gold pickaxe named "&e&lMinas&6&lVips"
            set slot 33 of player's current inventory to bedrock named "&8"
            set slot 34 of player's current inventory to bedrock named "&8"
            set slot 35 of player's current inventory to 425:10 named "&aSiguiente página"
            send "&aAbriendo lista de minas..."
            stop
        arg 1 is set:
            arg 1 is "2":
                if player does not have permission "skript.*":
                    send "&cEste lado de las minas no está listo!"
                    stop
                else:
                    open chest with 4 rows named "&0&lLista de &6&lMinas 2" to player
                    set {_n} to 0
                    loop 10 times:
                        set slot {_n} of player's current inventory to bedrock named "&8"
                        add 1 to {_n}
                    set slot 10 of player's current inventory to coal block named "&8&l&ki&8&lMina Novato P1 &8&l&ki"
                    set slot 11 of player's current inventory to coal block named "&8&l&ki&8&lMina Profesional P1 &8&l&ki"
       
       
on inventory click:
    inventory name of player's current inventory is "&0&lLista de warps":
        event-slot = air:
            close inventory of player
            wait 3 ticks
            execute player command "warp"
        event-slot = black stained glass pane:
            close player's inventory
            wait 3 ticks
            execute player command "warp"
        event-slot != air:
            clicked slot is 10:
                close inventory of player
                wait 3 ticks
                execute player command "minas"
            clicked slot is 20:
                close inventory of player
                wait 3 ticks
                execute player command "warp plots"
            clicked slot is 12:
                close inventory of player
                wait 3 ticks
                execute player command "warp survival"
            clicked slot is 22:
                close inventory of player
                wait 3 ticks
                execute player command "warp pvp"
           
           
on inventory click:
    clicked inventory isn't player's inventory
    inventory name of player's current inventory is "&0&lLista de &6&lMinas":
        event-slot = bedrock:
            close inventory of player
            wait 3 ticks
            execute player command "minas"
        event-slot != bedrock:
            clicked slot is 10:
                close inventory of player
                wait 3 ticks
                execute player command "warp mina"
            clicked slot is 11:
                close inventory of player
                wait 3 ticks
                execute player command "warp novato"
            clicked slot is 12:
                close inventory of player
                wait 3 ticks
                execute player command "warp profesional"
            clicked slot is 13:
                close inventory of player
                wait 3 ticks
                execute player command "warp experto"
            clicked slot is 14:
                close inventory of player
                wait 3 ticks
                execute player command "warp civil"
            clicked slot is 15:
                close inventory of player
                wait 3 ticks
                execute player command "warp prisionero"
            clicked slot is 16:
                close inventory of player
                wait 3 ticks
                execute player command "warp bravucon"
            clicked slot is 19:
                close inventory of player
                wait 3 ticks
                execute player command "warp buscado"
            clicked slot is 20:
                close inventory of player
                wait 3 ticks
                execute player command "warp asesino"
            clicked slot is 21:
                close inventory of player
                wait 3 ticks
                execute player command "warp serial"
            clicked slot is 22:
                close inventory of player
                wait 3 ticks
                execute player command "warp narco"
            clicked slot is 30:
                close inventory of player
                wait 3 ticks
                execute player command "warp minapvp"
            clicked slot is 31:
                close inventory of player
                wait 3 ticks
                execute player command "warp"
            clicked slot is 32:
                close inventory of player
                wait 3 ticks
                execute player command "warp minavip"
            clicked slot is 35:
                close inventory of player
                wait 3 ticks
                execute player command "minas 2"
And those are the skript that contain a code regarding the inventory.
To end, now im gonna show addons that i has on my server:
- MundoSk
- Skellett
- SkQuery
- SkRayFall
- skript-mirror
- SkUtilities
- TuSKe.
.
[doublepost=1555450460,1555450062][/doublepost]
In my server only have 28 plugins.
And the version of vault plugin from my server is: 1.5.3-b37 (Although I don't know if the version of the vault will help here.)
Disable all your scripts and see if the problem is still there
 
Status
Not open for further replies.