mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
do not allow usage of /kill when muted or chat moderation on
This commit is contained in:
parent
a36f84bb06
commit
958670ce60
@ -25,7 +25,9 @@ namespace MCGalaxy.Commands {
|
|||||||
public CmdKill() { }
|
public CmdKill() { }
|
||||||
|
|
||||||
public override void Use(Player p, string message) {
|
public override void Use(Player p, string message) {
|
||||||
if (message == "") { Help(p); return; }
|
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);
|
string[] args = message.SplitSpaces(2);
|
||||||
Player target = PlayerInfo.FindMatches(p, args[0]);
|
Player target = PlayerInfo.FindMatches(p, args[0]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user