1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -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

@ -44,6 +44,19 @@ namespace IW4MAdmin
if (serverManager.getServers() != null)
Program.getManager().mainLog.Write("IW4M Now Initialized!", Log.Level.Production);
String userInput;
Server serverToExecuteOn = serverManager.getServers()[0];
Player Origin = new Player("IW4MAdmin Console", "", -1, Player.Permission.Console, -1, "", 0, "");
do
{
userInput = Console.ReadLine();
Event E = new Event(Event.GType.Say, userInput, Origin, null, serverToExecuteOn);
Origin.lastEvent = E;
serverToExecuteOn.processEvent(E);
Console.Write('>');
} while (userInput != null && serverManager.isRunning());
serverMGRThread.Join();
serverManager.mainLog.Write("Shutting down IW4MAdmin...", Log.Level.Debug);