mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-09 23:00:57 -05:00
The commit simplifies the WelcomeConfiguration class, removing unnecessary methods and interfaces. It also changes how the Welcome plugin registers dependencies and processes in-game announcements. Additionally, it enables nullable reference type checks in the project settings. These changes generally improve the code structure, readability, and maintainability, while preserving the overall functionality of the plugin.
17 lines
595 B
C#
17 lines
595 B
C#
using SharedLibraryCore;
|
|
|
|
namespace IW4MAdmin.Plugins.Welcome
|
|
{
|
|
public class WelcomeConfiguration
|
|
{
|
|
public string UserAnnouncementMessage { get; set; } =
|
|
Utilities.CurrentLocalization.LocalizationIndex["PLUGINS_WELCOME_USERANNOUNCE_V2"];
|
|
|
|
public string UserWelcomeMessage { get; set; } =
|
|
Utilities.CurrentLocalization.LocalizationIndex["PLUGINS_WELCOME_USERWELCOME_V2"];
|
|
|
|
public string PrivilegedAnnouncementMessage { get; set; } =
|
|
Utilities.CurrentLocalization.LocalizationIndex["PLUGINS_WELCOME_PRIVANNOUNCE_V2"];
|
|
}
|
|
}
|