2018-05-08 00:58:46 -04:00
|
|
|
|
using SharedLibraryCore;
|
|
|
|
|
using SharedLibraryCore.Interfaces;
|
2018-03-18 22:25:11 -04:00
|
|
|
|
|
2018-04-09 15:17:10 -04:00
|
|
|
|
namespace IW4MAdmin.Plugins.Welcome
|
2018-03-18 22:25:11 -04:00
|
|
|
|
{
|
2023-02-11 21:56:52 -05:00
|
|
|
|
public class WelcomeConfiguration : IBaseConfiguration
|
2018-03-18 22:25:11 -04:00
|
|
|
|
{
|
|
|
|
|
public string UserAnnouncementMessage { get; set; }
|
|
|
|
|
public string UserWelcomeMessage { get; set; }
|
|
|
|
|
public string PrivilegedAnnouncementMessage { get; set; }
|
|
|
|
|
|
|
|
|
|
public IBaseConfiguration Generate()
|
|
|
|
|
{
|
2021-11-23 18:26:33 -05:00
|
|
|
|
UserAnnouncementMessage = Utilities.CurrentLocalization.LocalizationIndex["PLUGINS_WELCOME_USERANNOUNCE_V2"];
|
|
|
|
|
UserWelcomeMessage = Utilities.CurrentLocalization.LocalizationIndex["PLUGINS_WELCOME_USERWELCOME_V2"];
|
|
|
|
|
PrivilegedAnnouncementMessage = Utilities.CurrentLocalization.LocalizationIndex["PLUGINS_WELCOME_PRIVANNOUNCE_V2"];
|
2018-03-18 22:25:11 -04:00
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name() => "WelcomeConfiguration";
|
|
|
|
|
}
|
|
|
|
|
}
|