How to prevent an action (C#)?
x3008x last edited by x3008x
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