All Implemented Interfaces:
Listener

public abstract class WAddon extends Expansion implements Listener
Represents a warp addon that can restrict player warp creation.
  • Field Details

    • warpNameReplacement

      public String 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

      public abstract Runnable isAuthorized(Player player)
      Parameters:
      player - The player is wants to be authorized.
      Returns:
      A callback whether the player can set a warp or not.
    • force

      public void force(Player player, Location location)
      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.