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 Summary
Modifier and TypeMethodDescriptiondefault StringgetName()This returns the name of the ProtectionPluginyou are integrating.This returns thePluginfor thisProtectionModule.default StringThis returns the version of thePluginthis represents.booleanhasPermission(OfflinePlayer p, Location l, Interaction action) This method implements the functionality of this module.voidload()Use this method to load instances of your API or other utilites you need
-
Method Details
-
load
void load()Use this method to load instances of your API or other utilites you need -
getPlugin
Plugin getPlugin()This returns thePluginfor thisProtectionModule.- Returns:
- The associated
Plugin
-
getName
This returns the name of the ProtectionPluginyou are integrating. It must be unique.- Returns:
- The Name of your
Plugin
-
getVersion
This returns the version of thePluginthis represents.- Returns:
- The version of your
Plugin
-
hasPermission
This method implements the functionality of this module. Use it to allow or deny an Action based on the rules of your ProtectionPlugin- Parameters:
p- The Player that is being queried, can be offlinel- TheLocationof the event that is happeningaction- TheInteractionthat is taking place.- Returns:
- Whether the action was allowed by your
Plugin
-