Class ProtectionManager
java.lang.Object
io.github.bakedlibs.dough.protection.ProtectionManager
This Class provides a nifty API for plugins to query popular protection plugins.
- Author:
- TheBusyBiscuit
-
Constructor Summary
ConstructorsConstructorDescriptionProtectionManager(Plugin plugin) This creates a new instance ofProtectionManager, you can see this as a "Snapshot" of your plugins too. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(OfflinePlayer p, Block b, Interaction action) booleanhasPermission(OfflinePlayer p, Location l, Interaction action) voidlogAction(OfflinePlayer p, Block b, Interaction action) voidregisterLogger(ProtectionLogger module) voidregisterLogger(String name, ProtectionLogger module) voidregisterModule(PluginManager pm, String pluginName, Function<Plugin, ProtectionModule> constructor)
-
Constructor Details
-
ProtectionManager
This creates a new instance ofProtectionManager, you can see this as a "Snapshot" of your plugins too.- Parameters:
plugin- The plugin instance that integrates dough.
-
-
Method Details
-
registerLogger
-
registerModule
@ParametersAreNonnullByDefault public void registerModule(PluginManager pm, String pluginName, Function<Plugin, ProtectionModule> constructor) -
registerLogger
-
hasPermission
@ParametersAreNonnullByDefault public boolean hasPermission(OfflinePlayer p, Block b, Interaction action) -
hasPermission
@ParametersAreNonnullByDefault public boolean hasPermission(OfflinePlayer p, Location l, Interaction action) -
logAction
-