jsgr-mmo/src/Management/Commands/DisableChatCommand.cs
2024-04-07 15:42:36 +02:00

13 lines
402 B
C#

using sodoffmmo.Attributes;
using sodoffmmo.Core;
namespace sodoffmmo.Management.Commands;
[ManagementCommand("disablechat", Role.Moderator)]
class DisableChatCommand : IManagementCommand {
public void Handle(Client client, string[] arguments) {
client.Room.AllowChatOverride = false;
client.Room.Send(Utils.BuildServerSideMessage("Chat has been disabled", "Server"));
}
}