1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-11 07:40:54 -05:00

more plugin tweaks, added console interface!

This commit is contained in:
RaidMax
2015-08-22 01:04:30 -05:00
parent 7ca0b654ac
commit d42a329097
24 changed files with 235 additions and 166 deletions

View File

@ -29,6 +29,7 @@ namespace SharedLibrary
Macros = new Dictionary<String, Object>();
Reports = new List<Report>();
statusPlayers = new Dictionary<string, Player>();
playerHistory = new Queue<PlayerHistory>();
chatHistory = new List<Chat>();
lastWebChat = DateTime.Now;
nextMessage = 0;
@ -240,6 +241,13 @@ namespace SharedLibrary
{
if (Target.clientID > -1)
executeCommand("tellraw " + Target.clientID + " " + Message + "^7");
if (Target.Level == Player.Permission.Console)
{
Console.ForegroundColor = ConsoleColor.Cyan;
Console.WriteLine(Utilities.stripColors(Message));
Console.ForegroundColor = ConsoleColor.Gray;
}
}
/// <summary>
@ -474,6 +482,7 @@ namespace SharedLibrary
public int totalKills = 0;
public List<Report> Reports;
public List<Chat> chatHistory;
public Queue<PlayerHistory> playerHistory { get; private set; }
//Info
protected String IP;