/// <summary> /// Initializes a new instance of the <see cref="RestManager"/> class. /// </summary> /// <param name="main">The parent CTRSystem instance.</param> public RestManager(CTRS main) { _main = main; #region Register Commands TShock.RestApi.Register(new SecureRestCommand("/ctrs/transaction", restNewTransaction, Permissions.RestTransaction)); TShock.RestApi.Register(new SecureRestCommand("/ctrs/update", restUpdateContributors, Permissions.RestTransaction)); TShock.RestApi.Register(new SecureRestCommand("/ctrs/v2/transaction/{user_id}", restNewTransactionV2, Permissions.RestTransaction)); TShock.RestApi.Register(new SecureRestCommand("/ctrs/v2/update/{user_id}", restUpdateContributorV2, Permissions.RestTransaction)); #endregion }
public LoginManager(CTRS main) { _main = main; }
public CommandManager(CTRS main) { _main = main; }