Exemple #1
0
 internal Server()
 {
     Clients = new Dictionary<int, Client>();
     Rand = new Random();
     Logger = new Logger(Settings.Default.LogFile);
     Permissions = new PermissionConfiguration(this);
     PluginManager = new PluginManager(Settings.Default.PluginFolder);
     Items = new ItemDb(Settings.Default.ItemsFile);
     Recipes = Recipe.FromFile(Settings.Default.RecipesFile);
     if (Settings.Default.IrcEnabled)
         InitializeIrc();
 }
Exemple #2
0
        internal Server()
        {
            ServerHash = Hash.MD5(Guid.NewGuid().ToByteArray());
            UseOfficalAuthentication = true;

            Clients = new Dictionary<int, Client>();
            Rand = new Random();
            Logger = new Logger(this, Settings.Default.LogFile);
            Permissions = new PermissionConfiguration(this);
            PluginManager = new PluginManager(this, Settings.Default.PluginFolder);
            Items = new ItemDb(Settings.Default.ItemsFile);
            Recipes = Recipe.FromFile(Settings.Default.RecipesFile);
            ClientCommandHandler = new ClientCommandHandler();
            ServerCommandHandler = new ServerCommandHandler();
            if (Settings.Default.IrcEnabled)
                InitializeIrc();
        }
Exemple #3
0
 public PermissionHandler(Server server)
 {
     Users = new PermissionConfiguration(server, "resources/users.ini");
     Groups = new PermissionConfiguration(server, "resources/groups.ini");
 }