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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    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.

Solved Need help with player skulls

Discussion in 'Skript' started by FoxCraftGaming, Jan 26, 2021.

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

    Joined:
    Sep 23, 2020
    Messages:
    11
    Likes Received:
    0
    alright so, i want to make it when a player join, they get ther own skull in slot 0 (fist slot) named vrienden menu (dutch for friends menu). but i dont get it working with onw player head. anyone ideas how to make it?

    Code (Text):
    1. on join:
    2.     send "%player% has joined the network" to console
    3.     player's world = "spawn":
    4.         clear players inventory
    5.         wait 1 tick
    6.         set slot 5 of player's inventory to 1 of compass named "&bGame selectie"
    7.         set slot 0 of player's inventory to 1 of players skull named "&aVrienden Menu"
    8.     if player has permission "groep.default":
    9.         set join message to "&8[&a+&8] &7%player%"
    10.     if player has permission "groep.vip":
    11.         set join message to "&8[&a+&8] &2&k||&r &aVIP&r &2&k||&r &a%player%"
    12.     if player has permission "groep.moderator":
    13.         set join message to "&8[&a+&8] &4&k||&r&c Mod &4&k||&r &c%player%"
    14.     if player has permission "groep.developer":
    15.         set join message to "&8[&a+&8] &9&k||&r &bDeveloper &9&k||&r &b%player%"
    16.     if player has permission "groep.owner":
    17.         set join message to "&8[&a+&8] &c&k||&r &4Owner &c&k||&r &4%player%"
    18.     if player has permission "groep.banned":
    19.         set join message to "&8[&4X&8] %player% joined (verbannen & kan niets)"


     
  2. Best Answer:
    Post #4 by Dogloverblue17, Jan 29, 2021
  3. Dogloverblue17

    Joined:
    Sep 2, 2020
    Messages:
    28
    Likes Received:
    1
    Here you go!
    Code (Text):
    1. on join:
    2.     send "%player% has joined the network" to console
    3.     player's world = "spawn":
    4.         clear players inventory
    5.         wait 1 tick
    6.         set slot 5 of player's inventory to 1 of compass named "&bGame selectie"
    7.         set slot 0 of player's inventory to 1 of player skull named "&aVrienden Menu" with nbt "{SkullOwner:%player%}"
    8.     if player has permission "groep.default":
    9.         set join message to "&8[&a+&8] &7%player%"
    10.     if player has permission "groep.vip":
    11.         set join message to "&8[&a+&8] &2&k||&r &aVIP&r &2&k||&r &a%player%"
    12.     if player has permission "groep.moderator":
    13.         set join message to "&8[&a+&8] &4&k||&r&c Mod &4&k||&r &c%player%"
    14.     if player has permission "groep.developer":
    15.         set join message to "&8[&a+&8] &9&k||&r &bDeveloper &9&k||&r &b%player%"
    16.     if player has permission "groep.owner":
    17.         set join message to "&8[&a+&8] &c&k||&r &4Owner &c&k||&r &4%player%"
    18.     if player has permission "groep.banned":
    19.         set join message to "&8[&4X&8] %player% joined (verbannen & kan niets)"
     
    • Like Like x 1
  4. FoxCraftGaming

    Joined:
    Sep 23, 2020
    Messages:
    11
    Likes Received:
    0
    Thank you, il test it when i am home!
    --- Double Post Merged, Jan 27, 2021, Original Post Date: Jan 27, 2021 ---
    it is working but, the head is named Foxcraftgamings skull, not &aVrienden Menu.
     
  5. Dogloverblue17

    Joined:
    Sep 2, 2020
    Messages:
    28
    Likes Received:
    1
    Oh, thats weird, anyway, this should fix it

    Code (Text):
    1. on join:
    2.     send "%player% has joined the network" to console
    3.     player's world is not "spawn":
    4.         clear player's inventory
    5.         wait 1 tick
    6.         set slot 5 of player's inventory to 1 of compass named "&bGame selectie"
    7.         set slot 0 of player's inventory to 1 of player skull named "&aVrienden Menu" with nbt "{SkullOwner:%player%}"
    8.     if player has permission "groep.default":
    9.         set join message to "&8[&a+&8] &7%player%"
    10.     if player has permission "groep.vip":
    11.         set join message to "&8[&a+&8] &2&k||&r &aVIP&r &2&k||&r &a%player%"
    12.     if player has permission "groep.moderator":
    13.         set join message to "&8[&a+&8] &4&k||&r&c Mod &4&k||&r &c%player%"
    14.     if player has permission "groep.developer":
    15.         set join message to "&8[&a+&8] &9&k||&r &bDeveloper &9&k||&r &b%player%"
    16.     if player has permission "groep.owner":
    17.         set join message to "&8[&a+&8] &c&k||&r &4Owner &c&k||&r &4%player%"
    18.     if player has permission "groep.banned":
    19.         set join message to "&8[&4X&8] %player% joined (verbannen & kan niets)"
    20.     set the name of slot 0 of player's inventory to "&aVrienden Menu."
    21.  
    Yep, i tried, and this worked, Here you go!

    if you need any Other help, i'd be happy to help, that is, IF you ever need help, or want something done, you can message me on discord at Dogloverblue17#3786
     
  6. FoxCraftGaming

    Joined:
    Sep 23, 2020
    Messages:
    11
    Likes Received:
    0
    Thanks!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...