mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Change p and a chat logging
To be more consistent
This commit is contained in:
parent
40af51fc05
commit
2549e23fd2
@ -72,7 +72,7 @@ public class PCommand implements CommandExecutor {
|
|||||||
|
|
||||||
String name = (LoadProperties.pDisplayNames) ? player.getDisplayName() : player.getName();
|
String name = (LoadProperties.pDisplayNames) ? player.getDisplayName() : player.getName();
|
||||||
String pPrefix = ChatColor.GREEN + "(" + ChatColor.WHITE + name + ChatColor.GREEN + ") ";
|
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()) {
|
for (Player herp : Bukkit.getServer().getOnlinePlayers()) {
|
||||||
if (Users.getProfile(herp).inParty()) {
|
if (Users.getProfile(herp).inParty()) {
|
||||||
|
@ -332,7 +332,7 @@ public class mcPlayerListener implements Listener
|
|||||||
if(Party.getInstance().inSameParty(player, x))
|
if(Party.getInstance().inSameParty(player, x))
|
||||||
x.sendMessage(format);
|
x.sendMessage(format);
|
||||||
}
|
}
|
||||||
log.log(Level.INFO, "[P]"+format);
|
log.log(Level.INFO, "[P](" + PP.getParty() + ")<" + name + ">" + event.getMessage());
|
||||||
} else if (PP.getAdminChatMode()) {
|
} else if (PP.getAdminChatMode()) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
String name = (LoadProperties.aDisplayNames) ? player.getDisplayName() : player.getName();
|
String name = (LoadProperties.aDisplayNames) ? player.getDisplayName() : player.getName();
|
||||||
@ -342,7 +342,7 @@ public class mcPlayerListener implements Listener
|
|||||||
if(x.isOp() || mcPermissions.getInstance().adminChat(x))
|
if(x.isOp() || mcPermissions.getInstance().adminChat(x))
|
||||||
x.sendMessage(format);
|
x.sendMessage(format);
|
||||||
}
|
}
|
||||||
log.log(Level.INFO, "[A]"+format);
|
log.log(Level.INFO, "[A]<" + name + ">" + event.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user