forked from SoDOff-Project/sodoff-mmo
13 lines
402 B
C#
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"));
|
|
}
|
|
}
|