do not allow usage of /kill when muted or chat moderation on

This commit is contained in:
UnknownShadow200 2017-03-01 12:13:51 +11:00
parent a36f84bb06
commit 958670ce60

View File

@ -26,6 +26,8 @@ namespace MCGalaxy.Commands {
public override void Use(Player p, string message) {
if (message == "") { Help(p); return; }
if (!MessageCmd.CanSpeak(p, name)) return; // do not allow using kill to spam every 2 secs
string[] args = message.SplitSpaces(2);
Player target = PlayerInfo.FindMatches(p, args[0]);