From db38c019e642b7b47aa5633519717cefcae0741f Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 24 Sep 2017 10:09:30 +1000 Subject: [PATCH] Put death hug message before actual killing --- MCGalaxy/Commands/Chat/CmdHug.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MCGalaxy/Commands/Chat/CmdHug.cs b/MCGalaxy/Commands/Chat/CmdHug.cs index 691891f29..f506f00b3 100644 --- a/MCGalaxy/Commands/Chat/CmdHug.cs +++ b/MCGalaxy/Commands/Chat/CmdHug.cs @@ -35,6 +35,7 @@ namespace MCGalaxy.Commands.Chatting { } if (hugType == null) { TryMessageAction(p, args[0], "{0} %Shugged {1}", false); return; } + TryMessageAction(p, args[0], "{0} %Sgave {1} %Sa " + hugType + " hug", false); if (hugType == "deadly") { if (!CheckExtraPerm(p, 1)) return; Player target = PlayerInfo.FindMatches(p, args[0]); @@ -44,8 +45,7 @@ namespace MCGalaxy.Commands.Chatting { MessageTooHighRank(p, "&cdeath-hug%S", true); return; } target.HandleDeath((ExtBlock)Block.Stone, "@p %Sdied from a %cdeadly hug."); - } - TryMessageAction(p, args[0], "{0} %Sgave {1} %Sa " + hugType + " hug", false); return; + } } public override void Help(Player p) {