Change p and a chat logging

To be more consistent
This commit is contained in:
NuclearW 2012-02-15 17:31:17 -05:00
parent 40af51fc05
commit 2549e23fd2
2 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ public class PCommand implements CommandExecutor {
String name = (LoadProperties.pDisplayNames) ? player.getDisplayName() : player.getName();
String pPrefix = ChatColor.GREEN + "(" + ChatColor.WHITE + name + ChatColor.GREEN + ") ";
log.log(Level.INFO, "[P](" + PP.getParty() + ")" + "<" + name + "> " + pMessage);
log.log(Level.INFO, "[P](" + PP.getParty() + ")<" + name + "> " + pMessage);
for (Player herp : Bukkit.getServer().getOnlinePlayers()) {
if (Users.getProfile(herp).inParty()) {

View File

@ -332,7 +332,7 @@ public class mcPlayerListener implements Listener
if(Party.getInstance().inSameParty(player, x))
x.sendMessage(format);
}
log.log(Level.INFO, "[P]"+format);
log.log(Level.INFO, "[P](" + PP.getParty() + ")<" + name + ">" + event.getMessage());
} else if (PP.getAdminChatMode()) {
event.setCancelled(true);
String name = (LoadProperties.aDisplayNames) ? player.getDisplayName() : player.getName();
@ -342,7 +342,7 @@ public class mcPlayerListener implements Listener
if(x.isOp() || mcPermissions.getInstance().adminChat(x))
x.sendMessage(format);
}
log.log(Level.INFO, "[A]"+format);
log.log(Level.INFO, "[A]<" + name + ">" + event.getMessage());
}
}