forked from SoDOff-Project/sodoff-mmo
Moderation Commands #1
@ -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);
|
||||||
|
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user