1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Help] Armor Bar Not Visible When Armor Is Equipped

Discussion in 'Requests' started by Ripdog1, Jul 25, 2017.

  1. Ripdog1

    Ripdog1 Member

    Joined:
    Apr 7, 2017
    Messages:
    4
    Likes Received:
    0
    As shown in the picture below, when I load my skript, armor is placed on the player, but when you look down near the hunger bar, no armor is shown to be on the player. A temporary fix I have found is if you simply remove the armor piece and place it back on then it shows the armor bar again.

    IMAGE: http://imgur.com/a/n5PAH

    Skript:
    Code (Skript):
    1. command /kit [<text>]:
    2.     trigger:
    3.         if arg 1 is not set:
    4.             message "{@KPVP}You must specify which kit you want with /kit <kit>"
    5.         else if arg 1 is "default":
    6.             if {kit.default.%player%} is false:
    7.                 send "{@KPVP}Received kit &bDefault&7."
    8.                 wait 1 tick
    9.                 clear the inventory of player
    10.                 wait 1 tick
    11.                 set helmet of the player to iron helmet
    12.                 set chestplate of the player to iron chestplate
    13.                 set leggings of the player to iron leggings
    14.                 set boots of the player to iron boots
    15.                 set slot 0 of player's inventory to 1 iron sword named "{@KPVP}Iron Sword"
    16.                 set slot 1 of player's inventory to 1 bow named "{@KPVP}Bow"
    17.                 set slot 2 of player's inventory to 1 fishing rod named "{@KPVP}Fishing Rod"
    18.                 set slot 3 of player's inventory to 5 golden apples named "{@KPVP}Golden Apple"
    19.                 set slot 4 of player's inventory to 10 fire charges named "{@KPVP}Fire Charge"
    20.                 set slot 9 of player's inventory to 16 arrows named "{@KPVP}Arrow"
    21.                 set {kit.default.%player%} to true
    22.                 stop
    23.             else:
    24.                 send "{@KPVP}Kit already enabled. Die to change your kit."
     

Share This Page

Loading...