Calling mcMMO functions
mcMMO has a few functions plugin authors can call to make their plugin more compatible with mcMMO. You will of course need mcMMO as a library to call it.
inSameParty(Player playera, Player playerb)
- This is a boolean that will return true if both players are in an mcMMO party, use this to cancel damage events if your plugin handles damage between players.
isPartyChatToggled(Player player)
- This is a boolean that will return true if the player is currently toggled for party chat, typically you will want to check for this if your plugin modifies chat, if it comes up true do not proceed with your own chat modifications for maximum compatibility.
isAdminChatToggled(Player player)
- This is a boolean that will return true if the player is currently toggled for admin chat, typically you will want to check for this if your plugin modifies chat, if it comes up true do not proceed with your own chat modifications for maximum compatibility.