//Server starten public Server(ref PluginManager pm) { Listener = new TcpListener(localAddr, port); listenThread = new Thread(new ThreadStart(ListenForClients)); listenThread.Start(); plugin = pm; }
static void Main(string[] args) { //Console.WriteLine("Starting in: \n " + System.Environment.CurrentDirectory); //Console.WriteLine("--------------------------------------------------------------------------------"); PluginManager newPlugin = new PluginManager(); Server neuerServer = new Server(ref newPlugin); Console.WriteLine("Server started..."); }
public static PluginManager getInstance() { if (Instance == null) { Instance = new PluginManager(); } return Instance; }