1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-20 18:53:11 +01:00

Abstract the Chat commands.

This commit is contained in:
GJ
2013-02-07 15:59:18 -05:00
parent 6c266a8926
commit 4f45431dd3
5 changed files with 201 additions and 166 deletions

View File

@@ -40,6 +40,10 @@ public final class ChatManager {
mcMMO.p.getLogger().info("[A]<" + displayName + "> " + adminMessage);
}
public static void handleAdminChat(Plugin plugin, String senderName, String message) {
handleAdminChat(plugin, senderName, senderName, message);
}
public static void handlePartyChat(Plugin plugin, Party party, String playerName, String displayName, String message) {
String partyName = party.getName();
@@ -64,4 +68,8 @@ public final class ChatManager {
displayName = ChatColor.stripColor(displayName);
mcMMO.p.getLogger().info("[P](" + partyName + ")" + "<" + displayName + "> " + partyMessage);
}
public static void handlePartyChat(Plugin plugin, Party party, String senderName, String message) {
handlePartyChat(plugin, party, senderName, senderName, message);
}
}