Class BlacklistEntry

java.lang.Object
com.sk89q.worldguard.blacklist.BlacklistEntry

public class BlacklistEntry extends Object
  • Constructor Details

    • BlacklistEntry

      public BlacklistEntry(Blacklist blacklist)
      Construct the object.
      Parameters:
      blacklist - The blacklist that contains this entry
  • Method Details

    • getIgnoreGroups

      public String[] getIgnoreGroups()
      Returns:
      the ignoreGroups
    • getIgnorePermissions

      public String[] getIgnorePermissions()
      Returns:
      the ignoreGroups
    • setIgnoreGroups

      public void setIgnoreGroups(String[] ignoreGroups)
      Parameters:
      ignoreGroups - the ignoreGroups to set
    • setIgnorePermissions

      public void setIgnorePermissions(String[] ignorePermissions)
      Parameters:
      ignorePermissions - the ignorePermissions to set
    • getMessage

      public String getMessage()
      Returns:
      the message
    • setMessage

      public void setMessage(String message)
      Parameters:
      message - the message to set
    • getComment

      public String getComment()
      Returns:
      the comment
    • setComment

      public void setComment(String comment)
      Parameters:
      comment - the comment to set
    • shouldIgnore

      public boolean shouldIgnore(@Nullable LocalPlayer player)
      Returns true if this player should be ignored.
      Parameters:
      player - The player to check
      Returns:
      whether this player should be ignored for blacklist blocking
    • getActions

      public List<Action> getActions(Class<? extends BlacklistEvent> eventCls)
      Get the associated actions with an event.
      Parameters:
      eventCls - The event's class
      Returns:
      The actions for the given event
    • check

      public boolean check(boolean useAsWhitelist, BlacklistEvent event, boolean forceRepeat, boolean silent)
      Method to handle the event.
      Parameters:
      useAsWhitelist - Whether this entry is being used in a whitelist
      event - The event to check
      forceRepeat - Whether to force repeating notifications even within the delay limit
      silent - Whether to prevent notifications from happening
      Returns:
      Whether the action was allowed