Server Activation
Represents a server activation.
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface Requirements
Interface for defining activation requirements.
Functions
Link copied to clipboard
Adds a permission to the activation.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks if a player has any of the required permissions for the activation.
Checks if a voice player has any of the required permissions for the activation.
Link copied to clipboard
Clears all activation listeners.
Link copied to clipboard
Clears all permissions.
Link copied to clipboard
Clears all player activation end listeners.
Link copied to clipboard
Clears all player activation listeners.
Link copied to clipboard
Clears all player activation start listeners.
Link copied to clipboard
Gets the addon associated with the activation.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets the permissions associated with the activation.
Link copied to clipboard
Gets the optional requirements associated with the activation.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun onPlayerActivation(@NotNull activationListener: @NotNull ServerActivation.PlayerActivationListener)
Adds a new listener that will be invoked when a player uses the activation and meets all requirements:
Link copied to clipboard
abstract fun onPlayerActivationEnd(@NotNull activationEndListener: @NotNull ServerActivation.PlayerActivationEndListener)
Adds a new listener that will be invoked when a player sends PlayerAudioEndPacket and meets all requirements:
- checkPermissions
- checkDistance
- getRequirements
- activation is in getActiveActivations
Link copied to clipboard
abstract fun onPlayerActivationStart(@NotNull activationStartListener: @NotNull ServerActivation.PlayerActivationStartListener)
Adds a new listener that will be invoked when a player starts using the activation and meets all requirements:
Link copied to clipboard
Removes a permission from the activation.
Link copied to clipboard
abstract fun removePlayerActivationEndListener(@NotNull activationListener: @NotNull ServerActivation.PlayerActivationEndListener): Boolean
Removes a player activation end listener.
Link copied to clipboard
abstract fun removePlayerActivationListener(@NotNull activationListener: @NotNull ServerActivation.PlayerActivationListener): Boolean
Removes a player activation listener.
Link copied to clipboard
abstract fun removePlayerActivationStartListener(@NotNull activationListener: @NotNull ServerActivation.PlayerActivationStartListener): Boolean
Removes a player activation start listener.
Link copied to clipboard
Sets the available distances for the activation.
Link copied to clipboard
Sets whether the activation has proximity output.
Link copied to clipboard
Sets whether the activation is transitive.