promotional bannermobile promotional banner

KrimBoard

Allows the creation of multiple scoreboards and iterate thru them. Also allows the modification of scoreboards via console

This Plugin allows the creation of scoreboards from a plugin, console or commandblock. you can iterate thru the scoreboards by using the book (right click). It can register public, shared and private scoreboards, which are only visible to one user.

Please look at the sourcecode atm for more informations and how to use it.

Compatible Plugins (so far):

  • KrimBuy
  • KrimSale
  • KrimClasses
  • KRC

Example implementation in own code

public static Object BoardHelper = null;
        try {
			if(Class.forName("de.bdh.board.BoardHelper",false,getClassLoader()) != null)
			{
			    RegisteredServiceProvider<BoardHelper> KSh = getServer().getServicesManager().getRegistration(BoardHelper.class);
			    if(KSh != null)
			    {
			    	BoardHelper = KSh.getProvider();
			    }
			    else
			    	throw new ClassNotFoundException();
			}
		} catch (ClassNotFoundException e) {
			System.out.println((new StringBuilder()).append("[KB] KrimBoard not found").toString());	
		}

Example registration of the board helper

		bd = BoardHelper.generateNewBoard();
		o = bd.registerNewObjective("infos", "dummy");
		o.setDisplaySlot(DisplaySlot.SIDEBAR);
		this.bh.registerPrivateBoard(PLAYER, ID, bd);
		this.bh.showBoardToPlayer(PLAYER, ID);

Example to remove a board after a few minutes

	class removeBoard implements Runnable
	{
		BoardListener l;
		Player p;
		String id;
		public removeBoard(BoardListener l, Player p, String id)
		{
			this.l = l;
			this.p = p;
			this.id = id;
		}
		public void run() 
		{
			this.l.bh.removeBoardFromPlayer(p, this.id);
		}
		
	}

Bukkit.getServer().getScheduler().runTaskLater(Plugin, new removeBoard(PLAYER,ID), 10*20); //WIll remove the Board after 10 Seconds

for more informations take a look at the boardhelper class.

The KrimBoard Team

profile avatar
  • 6
    Projects
  • 41.9K
    Downloads

More from _ForgeUser6970770View all

  • RedMobSpawn project image

    RedMobSpawn

    • 0
    • Bukkit Plugins

    configure mobspawner with a sign and redstone

    • 0
    • September 22, 2013
    • Bukkit Plugins
  • CatchMob PokeBall project image

    CatchMob PokeBall

    • 2.6K
    • Bukkit Plugins

    Gives you the posibility to catch monster/animals and even players in spawneggs to let them fight each other

    • 2.6K
    • September 22, 2013
    • Bukkit Plugins
  • KrimClasses project image

    KrimClasses

    • 1.5K
    • Bukkit Plugins

    An API for roleplaying. Allows creation of classes and skills. Works as bridge between many plugins

    • 1.5K
    • September 11, 2013
    • Bukkit Plugins
  • KrimBuy Lot Protection project image

    KrimBuy Lot Protection

    • 8.9K
    • Bukkit Plugins

    Full automated lot/rent/protection plugin

    • 8.9K
    • February 22, 2015
    • Bukkit Plugins
    • +4
  • RedMobSpawn project image

    RedMobSpawn

    • 0
    • Bukkit Plugins

    configure mobspawner with a sign and redstone

    • 0
    • September 22, 2013
    • Bukkit Plugins
  • CatchMob PokeBall project image

    CatchMob PokeBall

    • 2.6K
    • Bukkit Plugins

    Gives you the posibility to catch monster/animals and even players in spawneggs to let them fight each other

    • 2.6K
    • September 22, 2013
    • Bukkit Plugins
  • KrimClasses project image

    KrimClasses

    • 1.5K
    • Bukkit Plugins

    An API for roleplaying. Allows creation of classes and skills. Works as bridge between many plugins

    • 1.5K
    • September 11, 2013
    • Bukkit Plugins
  • KrimBuy Lot Protection project image

    KrimBuy Lot Protection

    • 8.9K
    • Bukkit Plugins

    Full automated lot/rent/protection plugin

    • 8.9K
    • February 22, 2015
    • Bukkit Plugins
    • +4