Class PlotSquaredFeature

java.lang.Object
com.fastasyncworldedit.core.regions.FaweMaskManager
com.fastasyncworldedit.bukkit.regions.plotsquared.PlotSquaredFeature

public class PlotSquaredFeature extends com.fastasyncworldedit.core.regions.FaweMaskManager
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fastasyncworldedit.core.regions.FaweMaskManager

    com.fastasyncworldedit.core.regions.FaweMaskManager.MaskType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fastasyncworldedit.core.regions.FaweMask
    getMask(com.sk89q.worldedit.entity.Player player, com.fastasyncworldedit.core.regions.FaweMaskManager.MaskType type, boolean isWhitelist)
     
    boolean
    isAllowed(com.sk89q.worldedit.entity.Player player, com.plotsquared.core.plot.Plot plot, com.fastasyncworldedit.core.regions.FaweMaskManager.MaskType type)
    Whether the player is allowed to use FAWE on a PlotSquared plot.

    Methods inherited from class com.fastasyncworldedit.core.regions.FaweMaskManager

    getKey, isExclusive, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PlotSquaredFeature

      public PlotSquaredFeature()
  • Method Details

    • isAllowed

      public boolean isAllowed(com.sk89q.worldedit.entity.Player player, com.plotsquared.core.plot.Plot plot, com.fastasyncworldedit.core.regions.FaweMaskManager.MaskType type)
      Whether the player is allowed to use FAWE on a PlotSquared plot.
      Parameters:
      player - the Player
      plot - the Plot
      type - the FaweMaskManager.MaskType
      Returns:
      true if the player is the plot owner, trusted, has the permission fawe.plotsquared.member or fawe.plotsquared.admin and the NoWorldeditFlag is not set; otherwise false
    • getMask

      public com.fastasyncworldedit.core.regions.FaweMask getMask(com.sk89q.worldedit.entity.Player player, com.fastasyncworldedit.core.regions.FaweMaskManager.MaskType type, boolean isWhitelist)
      Specified by:
      getMask in class com.fastasyncworldedit.core.regions.FaweMaskManager