Interface ProtectionModule

All Known Implementing Classes:
BentoBoxProtectionModule, BlockLockerProtectionModule, ChestProtectProtectionModule, FactionsUUIDProtectionModule, FunnyGuildsProtectionModule, GriefPreventionProtectionModule, HuskTownsProtectionModule, LandsProtectionModule, LocketteProtectionModule, LWCProtectionModule, PlotSquaredProtectionModule, PreciousStonesProtectionModule, RedProtectProtectionModule, TownyProtectionModule, WorldGuardProtectionModule

public interface ProtectionModule
This Class represents a Protection Module that is used as a bridge to for your Plugin's API.
Author:
TheBusyBiscuit
  • Method Details

    • load

      void load()
      Use this method to load instances of your API or other utilites you need
    • getPlugin

      Plugin getPlugin()
      This returns the Plugin for this ProtectionModule.
      Returns:
      The associated Plugin
    • getName

      default String getName()
      This returns the name of the Protection Plugin you are integrating. It must be unique.
      Returns:
      The Name of your Plugin
    • getVersion

      default String getVersion()
      This returns the version of the Plugin this represents.
      Returns:
      The version of your Plugin
    • hasPermission

      boolean hasPermission(OfflinePlayer p, Location l, Interaction action)
      This method implements the functionality of this module. Use it to allow or deny an Action based on the rules of your Protection Plugin
      Parameters:
      p - The Player that is being queried, can be offline
      l - The Location of the event that is happening
      action - The Interaction that is taking place.
      Returns:
      Whether the action was allowed by your Plugin