Interface ChestProtectAddons
- All Known Implementing Classes:
ChestProtectAddon
Deprecated.
Use
ChestProtectAPI instead.-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.booleanDeprecated.@NotNull StringgetName()Deprecated.Get the name of the plugin.org.bukkit.plugin.PluginDeprecated.Get's plugin wich hooks ChestProtect.getProtection(org.bukkit.Location location) Deprecated.Get protection.getProtectionChunk(@NotNull org.bukkit.World world, int x, int z) Deprecated.Get chunk related protection data.getProtectionWorld(@NotNull org.bukkit.World world) Deprecated.Get world related protection data.getProtectPlayer(UUID UUID) Deprecated.Get cached landPlayerDeprecated.booleanDeprecated.booleanisProtectable(org.bukkit.block.Block block) Deprecated.Check if the given block can be protected.booleanisPublic()Deprecated.
-
Method Details
-
getName
Deprecated.Get the name of the plugin.- Returns:
- plugin name
-
getProtectPlayer
Deprecated.Get cached landPlayer- Parameters:
UUID- UUID string of player- Returns:
- LandPlayer or null, if not cached
- Since:
- 2.5.7
-
getProtectionWorld
Deprecated.Get world related protection data.- Parameters:
world- the Bukkit world- Returns:
- world data, or null if protections aren't enabled in that world
-
getProtectionChunk
Deprecated.Get chunk related protection data.- Parameters:
world- the Bukkit worldx- chunk X coordinatez- chunk Z coordinate- Returns:
- chunk data, or null if not loaded
-
getProtection
Deprecated.Get protection.- Parameters:
location- Location of protection- Returns:
- BlockProtection or null, if not loaded
-
getPlugin
org.bukkit.plugin.Plugin getPlugin()Deprecated.Get's plugin wich hooks ChestProtect.- Returns:
- Plugin
-
disable
Deprecated.Disables the APIHook.- Parameters:
hookKey- key of the hook to disable
-
initialize
Deprecated.Not any longer needed.- Returns:
- empty string
-
isProtectable
boolean isProtectable(org.bukkit.block.Block block) Deprecated.Check if the given block can be protected.- Parameters:
block- the block to check- Returns:
- true, if the block type is protectable
-
isEnabled
Deprecated.Check if hook is enabled.- Returns:
- Status
-
getAccess
Deprecated.Checks if you can access the hook with your key.- Parameters:
hookKey- Key of hook- Returns:
- Access status
-
isPublic
Deprecated.If public is true, other developers can access your LandsAPIHook.- Returns:
- true, if the hook is public
-