No, no, no. MooLib, not MooLimb! Who would serve raw steak anyway?
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.
MooLib is a dependency. If you have any plugins that say:
NoClassDefFoundError: com.otabi.firestar.moolib.MooLibPlugin
You will need to download this dependency.
Just add ML.jar to your build path, and you're done! Useful methods:
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:
I have no donate button, but you can comment with your happiness. Do I even need a donate button?