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
@ -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]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user