mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
fixed issue with not escaping regex for validating commands
This commit is contained in:
26
Plugins/Welcome/WelcomeConfiguration.cs
Normal file
26
Plugins/Welcome/WelcomeConfiguration.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using SharedLibrary.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Welcome_Plugin
|
||||
{
|
||||
class WelcomeConfiguration : IBaseConfiguration
|
||||
{
|
||||
public string UserAnnouncementMessage { get; set; }
|
||||
public string UserWelcomeMessage { get; set; }
|
||||
public string PrivilegedAnnouncementMessage { get; set; }
|
||||
|
||||
public IBaseConfiguration Generate()
|
||||
{
|
||||
UserAnnouncementMessage = "^5{{ClientName}} ^7hails from ^5{{ClientLocation}}";
|
||||
UserWelcomeMessage = "Welcome ^5{{ClientName}}^7, this is your ^5{{TimesConnected}} ^7time connecting!";
|
||||
PrivilegedAnnouncementMessage = "{{ClientLevel}} {{ClientName}} has joined the server";
|
||||
return this;
|
||||
}
|
||||
|
||||
public string Name() => "WelcomeConfiguration";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user