Class FactionsUUIDProtectionModule
java.lang.Object
io.github.bakedlibs.dough.protection.modules.FactionsUUIDProtectionModule
- All Implemented Interfaces:
ProtectionModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis returns thePlugin
for thisProtectionModule
.boolean
hasPermission
(OfflinePlayer p, Location l, Interaction action) This method implements the functionality of this module.void
load()
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, wait
Methods inherited from interface io.github.bakedlibs.dough.protection.ProtectionModule
getName, getVersion
-
Constructor Details
-
FactionsUUIDProtectionModule
-
-
Method Details
-
getPlugin
Description copied from interface:ProtectionModule
This returns thePlugin
for thisProtectionModule
.- Specified by:
getPlugin
in interfaceProtectionModule
- Returns:
- The associated
Plugin
-
load
public void load()Description copied from interface:ProtectionModule
Use this method to load instances of your API or other utilites you need- Specified by:
load
in interfaceProtectionModule
-
hasPermission
Description copied from interface:ProtectionModule
This method implements the functionality of this module. Use it to allow or deny an Action based on the rules of your ProtectionPlugin
- Specified by:
hasPermission
in interfaceProtectionModule
- Parameters:
p
- The Player that is being queried, can be offlinel
- TheLocation
of the event that is happeningaction
- TheInteraction
that is taking place.- Returns:
- Whether the action was allowed by your
Plugin
-