4a89744ee9
see pt6 parser and configs for example usages
23 lines
864 B
C#
23 lines
864 B
C#
using SharedLibraryCore;
|
|
using SharedLibraryCore.Interfaces;
|
|
|
|
namespace IW4MAdmin.Plugins.Welcome
|
|
{
|
|
class WelcomeConfiguration : IBaseConfiguration
|
|
{
|
|
public string UserAnnouncementMessage { get; set; }
|
|
public string UserWelcomeMessage { get; set; }
|
|
public string PrivilegedAnnouncementMessage { get; set; }
|
|
|
|
public IBaseConfiguration Generate()
|
|
{
|
|
UserAnnouncementMessage = Utilities.CurrentLocalization.LocalizationIndex["PLUGINS_WELCOME_USERANNOUNCE_V2"];
|
|
UserWelcomeMessage = Utilities.CurrentLocalization.LocalizationIndex["PLUGINS_WELCOME_USERWELCOME_V2"];
|
|
PrivilegedAnnouncementMessage = Utilities.CurrentLocalization.LocalizationIndex["PLUGINS_WELCOME_PRIVANNOUNCE_V2"];
|
|
return this;
|
|
}
|
|
|
|
public string Name() => "WelcomeConfiguration";
|
|
}
|
|
}
|