promotional bannermobile promotional banner

MooLib

A library that I will use for all my plugins.
<p>This cow is so awesome!</p>

This cow is so awesome!

Description

MooLib

No, no, no. MooLib, not MooLimb! Who would serve raw steak anyway?

Description

MooLib is a library that will be a dependency for all my plugins. MooLib only uses methods that I (or @cadox8) have tested externally. That means MooLib will never break, unless bukkit has a huge update or something.

FOR SERVER OWNERS

MooLib is a dependency. If you have any plugins that say:

NoClassDefFoundError: com.otabi.firestar.moolib.MooLibPlugin

You will need to download this dependency.

FOR DEVELOPERS

Just add ML.jar to your build path, and you're done! Useful methods:

  • Extending MooLibPlugin if you are lazy about your enables/disables.
  • Using TextUtils.chatToConsole makes chat code transform to console code. No more Control+Escape!
Oh no! What did I do?
  • Did you use TextUtils.spamChatForever?

Example of using code:

public void onPlayerMove(PlayerMoveEvent evt){

    Player player = evt.getPlayer();
    // The event's player

    String displayName = player.getDisplayName();
    // Display name of player (e.g. Notch)

    String consoleMsg = TextUtils.chatToConsole(ChatColor.RED+"Player "
            +ChatColor.GREEN+displayName+ChatColor.RED+" moved."
    // Changes chat colors to console colors

    MooLibPlugin.infoLog(consoleMsg);
    // Prints out consoleMsg

}

Will print:

  • [MooLib] [RED]Player [GREEN](display name) [RED]moved.

Plugins using MooLib

Donate

I have no donate button, but you can comment with your happiness. Do I even need a donate button?

The MooLib Team

profile avatar
  • 2
    Followers
  • 3
    Projects
  • 10.5K
    Downloads

More from tsun_bug

  • Leashed Players project image

    Leashed Players

    • 4.7K
    • Bukkit Plugins

    Allows you to leash other players

    • 4.7K
    • August 2, 2014
    • Bukkit Plugins
    • +1
  • Firework Projectiles project image

    Firework Projectiles

    • 4.1K
    • Bukkit Plugins

    When you spawn a projectile, when it lands it will (hopefully) spawn a firework.

    • 4.1K
    • August 2, 2014
    • Bukkit Plugins
    • +1
  • Leashed Players project image

    Leashed Players

    • 4.7K
    • Bukkit Plugins

    Allows you to leash other players

    • 4.7K
    • August 2, 2014
    • Bukkit Plugins
    • +1
  • Firework Projectiles project image

    Firework Projectiles

    • 4.1K
    • Bukkit Plugins

    When you spawn a projectile, when it lands it will (hopefully) spawn a firework.

    • 4.1K
    • August 2, 2014
    • Bukkit Plugins
    • +1