mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Core: make send check for mutes.
This commit is contained in:
parent
36dd41619b
commit
a5c9a5ccd6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user