Titles

Discussion in 'Plugin Development' started by xX_myles_Xx, Oct 21, 2014.

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

    xX_myles_Xx

    Hello Bukkit!

    I've started getting back into Minecraft & Bukkit coding again. I've seen the new "titles" feature and how most servers have incorporated it into there games.

    How would I do this in Bukkit? I think it's a really cool idea and I just wanna find out. xD

    Any help is much appreciated!

    - Myles
     
  2. Offline

    JordyPwner


    Code:java
    1. @EventHandler
    2. public void onJoin(PlayerJoinEvent e) {
    3.  
    4. TitleManager.sendTimings(e.getPlayer(), 20, 40, 20);
    5.  
    6. TitleManager.sendSubTitle(e.getPlayer(), "{\"text\":\"\",\"extra\":[{\"text\":\"And I am a Subtitle\",\"color\":\"blue\"}]}");
    7.  
    8. TitleManager.sendTitle(e.getPlayer(), "{\"text\":\"\",\"extra\":[{\"text\":\"I am a Title!\",\"color\":\"blue\"}]}");
    9.  
    10. }


    Will result in: [​IMG]
     
  3. Offline

    xX_myles_Xx

    Wow, thank you. Not only for telling me how, but for being nice & friendly. It's nice to have people like you on Bukkit. :3
     
  4. Offline

    JordyPwner

    Little google search :p
     
  5. Offline

    teej107

    JordyPwner TitleManager is not in the Bukkit API. It will be extremely helpful if you post what library you're getting that from.
     
    xX_myles_Xx likes this.
  6. Offline

    xX_myles_Xx

    Yep, now that I am trying it, it won't work. :C
     
  7. Offline

    Panjab

    TitleManager seems to be an API/Plugin from spigotmc.org.
     
  8. Offline

    xX_myles_Xx

  9. Offline

    JordyPwner

    Sorry didnt though about that :p
     
  10. Offline

    xX_myles_Xx

    Dammit, I've imported TitleManager & now "sendTimings" has now got an error. (The method sendTimings(Players, int, int, int) is undefined for the type TitleManager)

    Any ideas JordyPwner?
     
  11. Offline

    JordyPwner

  12. Offline

    extended_clip


    The reason you are getting errors are because you are trying to use a plugin that was made for the latest 1.8 protocol version of Spigot while you are (most likely) running the latest version of CraftBukkit on your server.
     
  13. Offline

    xX_myles_Xx

    Ok, now I have two "JAVA" files. What should I do with these? (Sorry if I'm being annoying, I'm just really excited to use these)
     
  14. Offline

    JordyPwner

    Two files for what?
     
  15. Offline

    xX_myles_Xx

  16. Offline

    JordyPwner

    Put them in your Project
     
  17. Offline

    fireblast709

    Guys, guys, wrong forum. Plugin development is still limited to Bukkit afaik.
     
    d3v1n302418 and Garris0n like this.
  18. Offline

    AronTheGamer

    You probably downloaded the JAR and opened it with WinRAR or any kind of archive software. Just go to your project settings and add the JAR file the way you did with Bukkit too.
     
  19. Offline

    xX_myles_Xx

    Ok, there in my Referenced Libraries. Is that correct?
     
  20. Offline

    JordyPwner

    Could you give me the latest spigot?
     
  21. Offline

    RingOfStorms

    That would be illegal. Just Google it, I'm sure you can find someone willing to break the rules.
     
  22. Offline

    JordyPwner

    Well all links are death due DMCA takedown
     
  23. Offline

    RingOfStorms

    That's because it is illegal. You'll have to do your own digging or ask on a different platform, like IRC. People would be more willing to link things in a PM on IRC than here.
     
  24. Offline

    ZeldoKavira

    Let me lock this here as this conversation has clearly gotten out of hand.
     
Thread Status:
Not open for further replies.

Share This Page