Admin-initiated soft mutes to GP logs.
Were previously not included in "admin activity" category of abridged logs.
This commit is contained in:
parent
f7232b1a7f
commit
d8caa7f09c
|
|
@ -2356,6 +2356,13 @@ public class GriefPrevention extends JavaPlugin
|
|||
if(isMuted)
|
||||
{
|
||||
GriefPrevention.sendMessage(player, TextMode.Success, Messages.SoftMuted, targetPlayer.getName());
|
||||
String executorName = "console";
|
||||
if(player != null)
|
||||
{
|
||||
executorName = player.getName();
|
||||
}
|
||||
|
||||
GriefPrevention.AddLogEntry(executorName + " muted " + targetPlayer.getName() + ".", CustomLogEntryTypes.AdminActivity, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user