mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Put death hug message before actual killing
This commit is contained in:
parent
4328ff25e2
commit
db38c019e6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user