Inventory error

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

ErkS

Member
Dec 24, 2017
40
0
6
21
Why its working only for first line of inventory

Code:
on inventory click:
    if level of player is less than 15:
        if name of tool of player is "&6&lKevlar" or "&6&lPrilba":
            play "ENTITY_ARMORSTAND_BREAK" to player at volume 100
            send "&e&lHAP> &c&lNemas dostatocny XP LVL! &fPre pouzitie &e&lpotrebujes&f aspon &a&llvl 15&f!"
            cancel event

on armor equip:
    if level of player is less than 15:
        if name of tool of player is "&6&lKevlar" or "&6&lPrilba":
            play "ENTITY_ARMORSTAND_BREAK" to player at volume 100
            send "&e&lHAP> &c&lNemas dostatocny XP LVL! &fPre pouzitie &e&lpotrebujes&f aspon &a&llvl 15&f!"
            cancel event
 
Status
Not open for further replies.