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
Code:java @EventHandler public void onJoin(PlayerJoinEvent e) { TitleManager.sendTimings(e.getPlayer(), 20, 40, 20); TitleManager.sendSubTitle(e.getPlayer(), "{\"text\":\"\",\"extra\":[{\"text\":\"And I am a Subtitle\",\"color\":\"blue\"}]}"); TitleManager.sendTitle(e.getPlayer(), "{\"text\":\"\",\"extra\":[{\"text\":\"I am a Title!\",\"color\":\"blue\"}]}"); } Will result in:
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
JordyPwner TitleManager is not in the Bukkit API. It will be extremely helpful if you post what library you're getting that from.
So it is, thanks Panjab! Download for people who want it. :3 Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler http://www.spigotmc.org/resources/titlemanager.1049/
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?
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.
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)
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.
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.