Interface.cs (ChatMessageReceived and SendChatMessage added). Small changes

This commit is contained in:
EntenKoeniq
2021-09-27 20:28:27 +02:00
parent 09b7860807
commit 6479d92460
4 changed files with 30 additions and 8 deletions

View File

@ -43,7 +43,7 @@ namespace CoopServer
internal bool InvokeChatMessage(string username, string message)
{
var args = new CancelEventArgs(false);
CancelEventArgs args = new(false);
OnChatMessage?.Invoke(username, message, args);
return args.Cancel;
}