Add %% command."

This commit is contained in:
Li 2022-05-08 16:25:53 +12:00
parent 9c97cdccb4
commit f14355bae8
5 changed files with 36 additions and 13 deletions

View file

@ -656,6 +656,8 @@ namespace HISP.Game
public static string AdminChatFormatForSender;
public static string ModChatFormatForSender;
public static string ServerAnnoucementFormat;
public static string DmModBadge;
public static string DmAutoResponse;
@ -2946,7 +2948,7 @@ namespace HISP.Game
{
return ModChatFormat.Replace("%USERNAME%", username).Replace("%MESSAGE%", message);
}
// NOTE: i dont have the correct format for this, im just guessing
public static string FormatAdminChatMessage(string username, string message)
{
return AdminChatFormat.Replace("%USERNAME%", username).Replace("%MESSAGE%", message);
@ -3013,6 +3015,12 @@ namespace HISP.Game
return WelcomeFormat.Replace("%USERNAME%", username);
}
// NOTE: i dont have the correct format for this, im just guessing
public static string FormatServerAnnoucement(string message)
{
return ServerAnnoucementFormat.Replace("%MESSAGE%", message);
}
// Transport
public static string FormatWelcomeToAreaMessage(string placeName)
{