public static SendCustom ( |
||
player | ||
rawMessage | string | |
Результат | bool |
private static void CustomChatHandler(Player player, Command cmd) { if (player.Info.IsMuted) { player.MessageMuted(); return; } if (player.DetectChatSpam()) { return; } string message = cmd.NextAll().Trim(); if (message.Length <= 0) { return; } if (player.Can(Permission.UseColorCodes) && message.Contains("%")) { message = Color.ReplacePercentCodes(message); } Chat.SendCustom(player, message); }