mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-16 18:19:38 -05:00
reworked some stats, redid the macro -> Tokens
added reset stats commands broadcast for some commands
This commit is contained in:
24
SharedLibrary/MessageToken.cs
Normal file
24
SharedLibrary/MessageToken.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SharedLibrary
|
||||
{
|
||||
public class MessageToken
|
||||
{
|
||||
public string Name { get; private set; }
|
||||
Func<string> Value;
|
||||
public MessageToken(string Name, Func<string> Value)
|
||||
{
|
||||
this.Name = Name;
|
||||
this.Value = Value;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Value().ToString();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user