示例#1
0
        /* OnGameInitialize
         *
         * Called once at start
         *
         * */
        private void OnGameInitialize(EventArgs Args)
        {
            SetupDB();

            SPluginApi Api = new SPluginApi(TShock.RestApi, DB);

            Api.RegisterRestfulCommands();
        }
示例#2
0
        /* OnGameInitialize
         *
         * Called once at start
         *
         * */
        private void OnGameInitialize(EventArgs Args)
        {
            SetupDB();

            SPluginApi Api = new SPluginApi(TShock.RestApi, DB);
            Api.RegisterRestfulCommands();
        }