Head loading problem

Discussion in 'Plugin Development' started by CaptainUniverse, Sep 30, 2014.

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

    CaptainUniverse

    Hia guys I'm making a player heads plugin. Everything works out great except for one thing O_O.
    When I give the player the head (via command) It gives them the head and all but when they put it on it is a Steve head! They then place it on the ground then break it and pick it up and it then it works. Does bukkit like load custom heads after they are placed? Anyway When i execute the command I'll get a head that I can put on? Well correct my code if you know how.
    Code:java
    1. //command part which works
    2. ItemStack stack = new ItemStack(Material.SKULL_ITEM,1,(short) 3);
    3. SkullMeta meta = (SkullMeta) stack.getItemMeta();
    4. meta.setOwner("somerandomguy");
    5. stack.setItemMeta(meta);
    6. //p being the sender
    7. p.getInventory().addItem(skull);
    8. //rest of command
    9. }
     
  2. Offline

    Gamesareme

    CaptainUniverse What is "skull". You have nothing called that, but you are still calling it.
     
  3. Offline

    Skionz

  4. Offline

    Gamesareme

    Skionz What I was going to say :(
     
  5. Offline

    CaptainUniverse

    lol sorry guys typing this on my phone. Yes "skull" is stack. Gamesareme and Skionz got any ideas?
     
  6. Offline

    ChipDev

    You didn't call ChipDev, But My idea was to go and snip some code from head plugins xP
     
  7. Offline

    CaptainUniverse

    Last edited by a moderator: Jun 14, 2016
  8. Offline

    Jimfutsu

    It seems like someone else had this bug to, it seems like if you are not in 1.7.9 or 1.7.10 head skins do not load.
     
  9. Offline

    Nateb1121

    I've done this before with the method you're using. One thing to check is the Bukkit version you're using. Also notice, names ARE CaSe SEnSitiVe.
     
  10. Offline

    CaptainUniverse

    Ok Nateb1121 I cehckd if the names had the proper CaSe ad the bug still continued and Jimfutsu is this bug avoidable? if not when will it be fixed

    hello?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  11. Offline

    Skionz

  12. Offline

    CaptainUniverse

    fine :mad: but its just no one has answered in like FOREVER sorry :(
     
  13. CaptainUniverse It's only been a day. Also, people have responded somewhat, even if you didn't find the responses helpful. You'll have to be patient, and eventually somebody will be able to help you out. :)
     
  14. Offline

    Jimfutsu

    Another thread that I helped in, it seemed like breaking the heads, then placing them displayed the skin
     
  15. Offline

    CaptainUniverse

    Yes Jimfutsu I know I said that in my first post on this forum. So is the "Bug" on the heads avoidable or will we have to wait for bukkit to update to 1.8 (Btw can someone answer that question bukkit won't update and craftbukkit is STILL down)
     
  16. Offline

    Jimfutsu

    I don't think so, the other dev I talked to was pretty experienced, and he was having troubles. In that post, I suggested a way or breaking the head then placing the head, as that seemed to fix the problem.

    As to your CB Question, a new platform called sponge, which is based on forge is being developed, it is pretty neat and has a MIT license so there should be no issues.
     
  17. Offline

    fireblast709

  18. Offline

    CaptainUniverse

    will sponge still work like bukkit if we have pore installed?
    And will it still work with the default mc client and all that.
    and will bukkit ever update its hard to say goodbye :(
     
  19. Offline

    fireblast709

    CaptainUniverse Bukkit hasn't officially been pronounced dead (afaik), there is still Spigot, and Glowstone and PureGero are based on the Bukkit API (based on the link in my previous post). For the last two: if implemented properly, they should work with all plugins that do not depend on OBC or NMS.
     
  20. Offline

    Funergy

    fireblast709 I thought we couldn't say the banned words. I always censor them like B*ngeeC*rd or Sp*g*t :)
     
  21. Offline

    Skionz

    Funergy The new staff added a category for spigot and glowstone and all that so I am pretty sure you can say bungeecord now
     
    Funergy likes this.
  22. Offline

    TheCodingCat

    I know this looks like an old thread but do any of you guys know a server who is implementing CraftBukkit and not bukkit
     
Thread Status:
Not open for further replies.

Share This Page