Class WAddon
java.lang.Object
com.olziedev.playerwarps.api.expansion.PluginExpansion
com.olziedev.playerwarps.api.expansion.Expansion
com.olziedev.playerwarps.api.expansion.WAddon
- All Implemented Interfaces:
Listener
Represents a warp addon that can restrict player warp creation.
-
Field Summary
Modifier and TypeFieldDescriptionReturns the name of the warp (without the placeholders replaced) from the config.Fields inherited from class com.olziedev.playerwarps.api.expansion.PluginExpansion
config, expansionConfig, file, integrated, plugin, registry, version
-
Constructor Summary
-
Method Summary
-
Field Details
-
warpNameReplacement
Returns the name of the warp (without the placeholders replaced) from the config. You will need to initialise this variable.
-
-
Constructor Details
-
WAddon
public WAddon()
-
-
Method Details
-
isAuthorized
- Parameters:
player
- The player is wants to be authorized.- Returns:
- A callback whether the player can set a warp or not.
-
force
This gives players permission to be able to bypass some expansion checks and force them to teleport to that location.- Parameters:
player
- The player to be forced on the expansion.location
- The location the player is teleporting to.
-