require authentication

send ``SMF`` if chat ban is detected
This commit is contained in:
Alan Moon 2025-02-27 18:57:30 -08:00
parent 998efe5624
commit e1c19b792c
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class ChatMessageHandler : CommandHandler {
UserBanType? banType = response.Content.ReadFromJsonAsync<UserBanType>().Result; UserBanType? banType = response.Content.ReadFromJsonAsync<UserBanType>().Result;
if (banType != null && (banType == UserBanType.IndefiniteOpenChatBan || banType == UserBanType.TemporaryOpenChatBan)) if (banType != null && (banType == UserBanType.IndefiniteOpenChatBan || banType == UserBanType.TemporaryOpenChatBan))
{ client.Send(Utils.ArrNetworkPacket(new string[] { "CB", "-1", "1" }, "CB")); return; } { client.Send(Utils.ArrNetworkPacket(new string[] { "SMF", "-1", "CB", "1", "Sorry, You've Been Banned From Using Type Chat", "1" }, "SMF")); return; }
client.Room.Send(Utils.BuildChatMessage(client.PlayerData.Uid, message, client.PlayerData.DiplayName), client); client.Room.Send(Utils.BuildChatMessage(client.PlayerData.Uid, message, client.PlayerData.DiplayName), client);

View File

@ -61,7 +61,7 @@
"// Authentication Optional": "authentication is required only for moderation activities", "// Authentication Optional": "authentication is required only for moderation activities",
"// Authentication RequiredForChat": "authentication is required only for moderation activities and using chat (if chat is enabled)", "// Authentication RequiredForChat": "authentication is required only for moderation activities and using chat (if chat is enabled)",
"// Authentication Required": "authentication is required to connect to mmo", "// Authentication Required": "authentication is required to connect to mmo",
"Authentication": "Disabled", "Authentication": "Required",
"// ApiUrl": "SoDOff API server URL for authentication calls", "// ApiUrl": "SoDOff API server URL for authentication calls",
"ApiUrl": "http://localhost:5000", "ApiUrl": "http://localhost:5000",