-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
None
-
Spigot 1.8.3
When dealing with a plugin that inherits with MaterialData (Citadel) I have noticed that when dealing with regular the plugin works fine when a player doesnt have access to a door and tries to open it they cant.
What we use to check is this method
public boolean isSecurable()
Unknown macro: { Block block = getLocation().getBlock(); return block.getState() instanceof InventoryHolder || block.getState().getData() instanceof Openable; }
What has ended up happening with the new door types is that this method returns false do to them not being an instanceof Openable. Openable is not a deprecated class and they should inherit from them.