Due to human (non-bot) spam the first contribution of a user has to be reviewed and activated manually, all further contributions do not require this.
As long as a user does not have at least one reviewed and activated contribution, the user is unable to edit his profile, set a avatar, title picture or a signature.
  • I am currently creating custom commands tailored to our server gameplay.
    While I have figured out how to work with currencies, i am having more trouble with contracts. Does anyone know how you can delete a contract?

  • I didn't test it but I suppose something like that will work

    C#
    [ChatCommand("Delete a contract by name", ChatAuthorizationLevel.Admin)]
            public static void DeleteContract(User user, string contractName)
            {
                EconomyManager.Contracts.DestroyContract(EconomyManager.Contracts.Contracts.First(x => x.Name == contractName).ContractID);
            }
  • Thank you. That was what i was looking for.
    I thought i had tried that before but i must have done something wrong. Anyway, i got it working now.

    C#
    [ChatCommand("Clear all accepted contracts")]
        public static void ClearMyAcceptedContracts(User user)
        {
            foreach(Contract contract in user.AcceptedContracts)
            {
                EconomyManager.Contracts.DestroyContract(contract.ContractID);
            }
        }

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!