BukkitText Library 0.3

Allows people using this API to send special types of text included in Minecraft 1.8, easier.

  1. Teddinator
    Contributors:
    Teddinator, ArticleZero (Showed me how to do the action bar in a post)
    Version 0.3 fixes some class names from Version 1. I created this library for those who do not know how to utilise the new Craftbukkit/Spigot Title and Action bar text functions. The library is licenced under "BSD".

    Examples:

    Send player title on join:
    Code (Text):
    private BukkitText text = new BukkitText();

    @Eventhandler
    public void onJoin(PlayerJoinEvent e) {

    Player player = e.getPlayer();

    String title = "&cWelcome &b" + player.getName() + " &cto the server!"
    String subtitle = "&4Enjoy your stay!"

    // all times are in ticks, as a heads up
    int fadeIn = 20;
    int viewTime = 60;
    int fadeOut = 20;

    text.sendTitleText(subtitle, title, player, fadeIn, viewTime, fadeOut);
    }
    Send player action bar text if they break diamond ore:
    Code (Text):
    private BukkitText text = new BukkitText();

    @EventHandler
    public void onBlockBreak(BlockBreakEvent e) {
    Player player = e.getPlayer();

    String message = "&6Congrats! You just mined &bDiamond ore&6!";

    if(e.getBlock().getType() == Material.DIAMOND_ORE) {
    text.sendActionBarText(message, player);
    }
    }

Recent Updates

  1. BukkitText Library

Recent Reviews

  1. Compgeek28
    Compgeek28
    2/5,
    Version: 0.3
    I could not get the jar file to work with eclipse. I have imported it as an external jar yet eclipse can't find where to import BukkitText from
    1. Teddinator
      Author's Response
      You may have downloaded the past versions where the class names were the wrong names. If this is still so for Version 0.3, please contact me.