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!


    You can always check out our Wiki for downloads and any other information about Skript!

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

Mundosk Tablist

Discussion in 'Skript' started by Oliv583c, Mar 16, 2021.

Thread Status:
Not open for further replies.
  1. Oliv583c

    Oliv583c Member

    Jan 11, 2021
    Likes Received:
    Hi. I just recently started to learn how to make a special kind of tablist:


    Using Mundosk.

    But. I wanted to color some of the "player heads" like this:


    I have tried a variety of ways. My method was to change my skin into a solid color. Then save my own skin in a file or variable. Then later on I could use the variable/file to set the skin on. But it just can't see it as a skin.
    Here is my code (Note: This is in danish):
    Code (Text):
    1. command /savecolor [<text>] [<text>]:
    2.     permission: M-Ejer
    3.     permission message: &4Du har ikke adgang til denne kommando.
    4.     trigger:
    5.         if arg-1 is not set:
    6.             send "&c&lFARVE &c/SaveColor &7Add <Farve>"
    7.             send "&c&lFARVE &c/SaveColor &7Fjern <Farve>"
    8.             send "&c&lFARVE &c/SaveColor &7List"
    9.         Else:
    10.             if arg-1 is "List":
    11.                 if size of {SaveColors::*} is greater than 0:
    12.                     send "&6&lOPRETTEDE FARVER:"
    13.                     send ""
    14.                     set {_N} to 0
    15.                     loop {SaveColors::*}:
    16.                         add 1 to {_N}
    17.                         send "&a%{_N}%. &e%loop-value%"
    18.                     send ""
    19.                     send "&7Der er ialt &a%{_N}%&7 oprettede farver!"
    20.                 Else:
    21.                     send "&c&lFARVE &cDer er ingen oprettede farver."
    22.             Else:
    23.                 if arg-2 is set:
    24.                     if arg-1 is "Add" or "Tilføj" or "Opret":
    25.                         if {SaveColor.%arg-2%} is not set:
    26.                             set {SaveColor.Skin.%arg-2%} to "%player's skin%"
    27.                             add arg-2 to {SaveColors::*}
    28.                             send "&c&lFARVE &7Du oprettede farven &a%arg-2%&7!"
    29.                             set {SaveColor.%arg-2%} to arg-2
    30.                         Else:
    31.                             send "&c&lFARVE &cDenne farve er allerede oprettet!"
    32.                     Else:
    33.                         if arg-1 is "Remove" or "Fjern" or "Slet":
    34.                             if {SaveColor.%arg-2%} is set:
    35.                                 send "&c&lFARVE &7Du fjernede farven &a%{SaveColor.%arg-2%}%&7!"
    36.                                 delete {SaveColor.%arg-2%}
    37.                                 delete {SaveColor.Skin.%arg-2%}
    38.                                 remove arg-2 from {SaveColors::*}
    39.                             Else:
    40.                                 send "&c&lFARVE &cDenne farve er ikke oprettet!"
    41.                         Else:
    42.                             send "&c&lFARVE &cUkendt argument!"
    43.                 Else:
    44.                     send "&c&lFARVE &c/SaveColor &7Add <Farve>"
    45.                     send "&c&lFARVE &c/SaveColor &7Fjern <Farve>"
    46.                     send "&c&lFARVE &c/SaveColor &7List"
    And the code when I tried to load on the skin:
    Code (Text):
    1. command /test:
    2.     trigger:
    3.         set icon of tab 4, 20 for players to {SaveColor.<Color>}
    I know in the first line of code I set the variable to "%player's skin%". And it would have worked fine if I was able to use player's skin instead of "%player's skin%". But it doesn't seem to be able to save my actual skin in a file or global variable. What I mean by that is that if I use the variable {_Test} it works since it doesn't save into the variables file in the skripts folder. Does anyone know how to put the skin on? (Without actually having the skin)

    Please note that I use spigot 1.8.8
Thread Status:
Not open for further replies.

Share This Page