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 Other players heads

Discussion in 'Skript' started by Hartvig, Jun 4, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. Hartvig

    Hartvig Member

    Joined:
    Apr 18, 2017
    Messages:
    39
    Likes Received:
    1
    Layout:

    Skript Version: Skript 2.2 (dev20c)
    Skript Author: Hartvig
    Minecraft Version: 1.8
    ---
    Code:
    Code (Skript):
    1. format slot 0 of player with skull of player named "&6Profile &a%arg 1%" with lore "&cTotal blocks mined! &a&l%{totalminedblocks.%arg 1%}%  " to be unstealable

    Troubleshooting:
    So how can i change the skull to the player im targetting, example /ma Legend

    Have you tried searching the docs? Yes
    Have you tried searching the forums? No
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Assuming arg-1 is <player> or <offline player> then you can use "skull of arg-1"
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    i've tried that already, and it didn't work
    --- Double Post Merged, Jun 4, 2017, Original Post Date: Jun 4, 2017 ---
    Code (Skript):
    1. command /mineadmin [<text>]:
    2.     permission: {@permissionowners}
    3.     permission message: {@tagserver} {@nopermission}
    4.     aliases: /ma
    5.     usage: /ma <player> or /ma
    6.     trigger:
    7.         if arg 1 is not set:
    8.             send "          &6Velkommen til &cAdmin Panelet &a%player%"
    9.             wait 0.5 seconds
    10.             send "                                                                                      "
    11.             send "     &c/minedadmin panel &7- for at få adganng til &4Admin &7panelet!"
    12.             send "                                                                                      "
    13.             wait 0.5 seconds
    14.             send "                                                                                      "
    15.             send "     &c/ma hjælp &7- for at se alle &4Admin &7kommandoer"
    16.             send "                                                                                      "
    17.             wait 0.5 seconds
    18.             send "     &4&lBemærk! reset players stats rigtigt!                            "
    19.             send "                                                                                      "
    20.             wait 1 second
    21.             send "                 &4&lSkript lavet af Hartvig!                    "
    22.             play raw sound "mob.creeper.death" at player with pitch 1 volume 10
    23.         if arg 1 is "panel":
    24.             play raw sound "note.pling" at player with pitch 1 volume 10
    25.             open chest with 1 row named "&cAdmin Panel" to player
    26.             format slot 3 of player with Iron Ingot named "&c&lSLET TOTAL BLOCKS MINED" with lore "&aEr du sikker &c%player% &a?" to close then run [execute player command "/ma deletealtmb"]
    27.             format slot 5 of player with Gold Ingot named "&c&lSLET ALLE MINEDBLOCKS" with lore "&aEr du sikker &c%player% &a?" to close then run [execute player command "/ma deleteallmb"]
    28.         if arg 1 is "deletealtmb":
    29.             delete {totalminedblocks.%player%}
    30.             send "&cDu har slettet total blocks mined med en &aSucess!"
    31.             play raw sound "mob.zombie.death" at player with pitch 1 volume 10
    32.         if arg 1 is "deleteallmb":
    33.             delete {mineemerald.%player%}
    34.             delete {mineddiamond.%player%}
    35.             delete {minedreds.%player%}
    36.             delete {minedgold.%player%}
    37.             send "&cDu har slettet alle blocks mined med en &aSucess! "
    38.             play raw sound "mob.creeper.death" at player with pitch 1 volume 10
    39.         if arg 1 is "hjælp":
    40.             send "                    &bMa hjælp                    "
    41.             send "&c/ma hjælp &7- viser alle kommandoer"
    42.             send "&c/ma panel &7- åbner &4Admin &7panelet"
    43.             send "                                                       "
    44.         if arg 1 is set:
    45.             play raw sound "note.harp" at player with pitch 1 volume 10
    46.             open chest with 2 row named "&6Mined Blocks" to player
    47.             format slot 0 of player with skull of arg-1 named "&6Profile &a%arg 1%" with lore "&cTotal blocks mined! &a&l%{totalminedblocks.%arg 1%}%  " to be unstealable
    48.             format slot 2 of player with Diamond Ore named "&7Mined>>&bDiamond Ore" with lore "&bMined: &c&l%{mineddiamond.%arg 1%}%" to be unstealable
    49.             format slot 4 of player with Emerald Ore named "&7Mined>>&aEmerald Ore" with lore "&bMined: &c&l%{mineemerald.%arg 1%}%" to be unstealable
    50.             format slot 6 of player with Redstone Ore named "&7Mined>>&cRedstone Ore" with lore "&bMined: &c&l%{minedreds.%arg 1%}%" to be unstealable
    51.             format slot 8 of player with Gold Ore named "&7Mined>>&6Gold Ore" with lore "&bMined: &c&l%{minedgold.%arg 1%}%" to be unstealable
    52.             format slot 13 of player with Nether Star named "   &cLuk  " with lore "&7Lukker statistik menuen" to close
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Line 1 needs to be "command /mineadmin [<offline player>]:
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
Thread Status:
Not open for further replies.

Share This Page

Loading...