コード例 #1
0
ファイル: Plugin.cs プロジェクト: TheRekman/Region-Extension
 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>();
 }