Core: make send check for mutes.

This commit is contained in:
Goodlyay 2016-12-02 14:01:35 -08:00
parent 36dd41619b
commit a5c9a5ccd6

View File

@ -31,6 +31,7 @@ namespace MCGalaxy.Commands {
public override void Use(Player p, string message) {
string[] parts = message.SplitSpaces(2);
if (message == "" || parts.Length == 1) { Help(p); return; }
if (!MessageCmd.CanSpeak(p, name)) return;
string receiverName = PlayerInfo.FindMatchesPreferOnline(p, parts[0]);
if (receiverName == null) return;