Uses of Class
com.ultikits.ultitools.utils.PlayerActionHandler.Action
Packages that use PlayerActionHandler.Action
-
Uses of PlayerActionHandler.Action in com.ultikits.ultitools.utils
Methods in com.ultikits.ultitools.utils that return PlayerActionHandler.ActionModifier and TypeMethodDescription(package private) static PlayerActionHandler.Action(package private) static PlayerActionHandler.Actionprivate static PlayerActionHandler.ActionPlayerActionHandler.parse(CloudRequest request) Reads one branch of the discriminated union, validating exactly the keys that branch allows.(package private) static PlayerActionHandler.ActionPlayerActionHandler.Action.teleport(String player, PlayerActionHandler.Target target) Methods in com.ultikits.ultitools.utils with parameters of type PlayerActionHandler.ActionModifier and TypeMethodDescriptionprivate voidPlayerActionHandler.completeTeleport(CloudChannel channel, CloudRequest request, PlayerActionHandler.Action action, Boolean completed, Throwable error) Answers the teleport once its future completes.private voidPlayerActionHandler.deny(CloudChannel channel, CloudRequest request, PlayerActionHandler.Action action, String code, String message) private org.bukkit.LocationPlayerActionHandler.destination(CloudChannel channel, CloudRequest request, PlayerActionHandler.Action action, org.bukkit.entity.Player subject) Resolves the destination, answeringplayer_not_onlineorworld_not_foundand returning null when the target cannot be resolved.private voidPlayerActionHandler.fail(CloudChannel channel, CloudRequest request, PlayerActionHandler.Action action, Throwable error) Maps a throwing call to the contract'sinternal_errorwith one fixed message: the exception class and stack stay in the local log and never reach the wire, as in the agent router (22-08).private voidPlayerActionHandler.perform(CloudRequest request, CloudChannel channel, PlayerActionHandler.Action action) Runs once per accepted request, on the main thread: resolve the subject, then act.private voidPlayerActionHandler.record(PlayerActionHandler.Action action, String refusal) private voidPlayerActionHandler.runGameMode(CloudChannel channel, CloudRequest request, PlayerActionHandler.Action action, org.bukkit.entity.Player subject) Applies the requested game mode and reports it as done only when the player's mode now equals the requested one: another plugin may cancel thePlayerGameModeChangeEvent, and the platform discards that answer.private voidPlayerActionHandler.runKick(CloudChannel channel, CloudRequest request, PlayerActionHandler.Action action, org.bukkit.entity.Player subject) Kicks with the reason as one plain-text component, or with the server's own default message when the panel sent no reason.private voidPlayerActionHandler.runTeleport(CloudChannel channel, CloudRequest request, PlayerActionHandler.Action action, org.bukkit.entity.Player subject) Starts the asynchronous teleport and answers when its future completes.private voidPlayerActionHandler.succeed(CloudChannel channel, CloudRequest request, PlayerActionHandler.Action action)