Annotation Interface PlayerActionHandler


@Retention(RUNTIME) @Target(METHOD) public @interface PlayerActionHandler
Marks a method as a player action handler, meaning it will be called by Administration.allowAction(mindustry.gen.Player, mindustry.net.Administration.ActionType, mindustry.world.Tile, arc.func.Cons<mindustry.net.Administration.PlayerAction>).
The annotated method must have a single Administration.PlayerAction parameter, and return a boolean, whether the action should be allowed or not.
Since:
4.2.0