示例#1
0
 private void OnInitialize(EventArgs args)
 {
     Contexts = new ContextManager();
     Contexts.Initialize();
     ExtManager  = new RegionExtManager(TShock.DB);
     Config      = ConfigFile.Read();
     FastRegions = new List <FastRegion>();
 }
示例#2
0
 private void OnInitialize(EventArgs args)
 {
     Commands.ChatCommands.Add(new Command(Permissions.manageregion, RegionExtenionCmd, "/re", "/regionext"));
     Commands.ChatCommands.Add(new Command("regionext.own", RegionOwningCmd, "/ro", "/regionown"));
     Contexts = new List <ContextCommand>();
     Contexts.Add(new ContextCommand("this", ContextThis));
     Contexts.Add(new ContextCommand("myname", ContextMyName));
     ExtManager  = new RegionExtManager(TShock.DB);
     Config      = ConfigFile.Read();
     FastRegions = new List <FastRegion>();
 }