From db8670dacf7cf60791f8b60c6a3dcb10fa31e610 Mon Sep 17 00:00:00 2001 From: Dmitriy Kudryk Date: Fri, 21 Aug 2015 18:24:05 +0300 Subject: [PATCH] Small fix --- MOTD.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/MOTD.cs b/MOTD.cs index b75c097..9022bd6 100644 --- a/MOTD.cs +++ b/MOTD.cs @@ -74,13 +74,16 @@ private string PlayerPermission(UnturnedPlayer player) { if (Configuration.Instance.ShowWarnings) { - Logger.LogWarning("[MOTD plugin] Cant find permission for player " + player.DisplayName + "Nothing will be shown to him"); + Logger.LogWarning("[MOTD plugin] Cant find permission for player " + player.DisplayName + ". Nothing will be shown to him"); } return "none"; } - Logger.LogWarning("[MOTD plugin] Player " + player.DisplayName + " has more than one permissions. Nothing will be shown to him"); - return "none"; + if (Configuration.Instance.ShowWarnings) + { + Logger.LogWarning("[MOTD plugin] Player " + player.DisplayName + " has more than one permission. We will show messages only from latest group to him"); + } + return permission; } } }