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

give custom nametag

Discussion in 'Help' started by asterW10, Jan 12, 2018 at 7:59 PM.

  1. asterW10

    asterW10 Spider Jockey

    Messages:
    36
    GitHub:
    tdmidkwhatisxd
    How to give someone a slimeball with custom nametag "Derp Pill" ....
    I use KitUI but I wanna give Pill on Vote too with /give
     
  2. QuiverlyRivalry

    QuiverlyRivalry Zombie Pigman

    Messages:
    474
    GitHub:
    quiverlyrivalry
    give specfic meta, and for that meta setCustomName
     
  3. asterW10

    asterW10 Spider Jockey

    Messages:
    36
    GitHub:
    tdmidkwhatisxd
    Omg , just tell me the /give command for custom name
     
  4. rektpixel

    rektpixel Baby Zombie

    Messages:
    158
    command:
    Code:
    /give <player> 341 1 {display:{Name:"Derp Pill"}}
    However you won't be able to add this to a config without getting an error. so I reccomend adding it to the plugin
    code:
    PHP:
    $player->getInventory()->addItem(Item::get(34101)->setCustomName("Derp Pill"));
     
    QuiverlyRivalry likes this.
  5. asterW10

    asterW10 Spider Jockey

    Messages:
    36
    GitHub:
    tdmidkwhatisxd
    you right + give wont work with custom name, it wont set.
    But , thx for API, it is helpful.
     
  6. rektpixel

    rektpixel Baby Zombie

    Messages:
    158
    did you replace <player> with your name? :D
     
  7. asterW10

    asterW10 Spider Jockey

    Messages:
    36
    GitHub:
    tdmidkwhatisxd
    lol , I knew too that command, just don't work anymore lol... ofcourse <player> got replaced with my name
     
  8. rektpixel

    rektpixel Baby Zombie

    Messages:
    158
    nah the command 100% works. tested. *works in-game* not via a config
     
    MC ATECH likes this.
  9. asterW10

    asterW10 Spider Jockey

    Messages:
    36
    GitHub:
    tdmidkwhatisxd
    for me no work, I get the item, but still same name
     

Share This Page