Class HuskTownsProtectionModule
java.lang.Object
io.github.bakedlibs.dough.protection.modules.HuskTownsProtectionModule
- All Implemented Interfaces:
ProtectionModule
Protection handling module for HuskTowns
- Author:
- William278
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionme.william278.husktowns.listener.ActionTypegetHuskTownsAction(Interaction doughAction) Returns the corresponding HuskTownsActionTypefrom the doughInteractionThis returns thePluginfor thisProtectionModule.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 needMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.bakedlibs.dough.protection.ProtectionModule
getName, getVersion
-
Constructor Details
-
HuskTownsProtectionModule
-
-
Method Details
-
load
public void load()Description copied from interface:ProtectionModuleUse this method to load instances of your API or other utilites you need- Specified by:
loadin interfaceProtectionModule
-
getPlugin
Description copied from interface:ProtectionModuleThis returns thePluginfor thisProtectionModule.- Specified by:
getPluginin interfaceProtectionModule- Returns:
- The associated
Plugin
-
hasPermission
Description copied from interface:ProtectionModuleThis method implements the functionality of this module. Use it to allow or deny an Action based on the rules of your ProtectionPlugin- Specified by:
hasPermissionin interfaceProtectionModule- 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
-
getHuskTownsAction
@Nonnull public me.william278.husktowns.listener.ActionType getHuskTownsAction(@Nonnull Interaction doughAction) Returns the corresponding HuskTownsActionTypefrom the doughInteraction- Parameters:
doughAction- The doughInteraction- Returns:
- The corresponding HuskTowns
ActionType
-