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?