How to prevent an action (C#)?


  • Hello everyone,
    maybe someone can help me, because there are no modding constructions / api documents right now (just C# modding)...
    If I have the "SellAction" for example (Eco.Gameplay.Stats.PlayerActions.Sell.OnActionPerformed.Add(HandleSellAction);
    How can I prevent this Action like in the laws? If I throw an exception, the action will be canceled, but this way isn't very nice (this will also kick the client from the game) :D

    Thanks ;)


  • 1
    Posts
    339
    Views
    Log in to reply

Internal error.

Oops! Looks like something went wrong!