Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
<url>https://hub.spigotmc.org/nexus/content/repositories/public/</url>
</repository>
</repositories>
<dependencies>
<!--Spigot API-->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.13-R0.1-SNAPSHOT</version>
<version>1.21.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!--Bukkit API-->
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.13-R0.1-SNAPSHOT</version>
<scope>provided</scope>
<version>1.20.5-R0.1-20240423.155811-1</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-chat</artifactId>
<version>1.12-SNAPSHOT</version>
<version>1.21-R0.1-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
Expand Down
9 changes: 1 addition & 8 deletions src/main/java/net/simplycrafted/StickyLocks/Database.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,7 @@ private Location getUnambiguousLocation(Block target) {
// Doors only. This function's useful only for multiple-block Blocks that can't be
// partially destroyed, which excludes chests.
Block blockBelow = target.getRelative(BlockFace.DOWN);
if (target.getType().equals(Material.getMaterial("OAK_DOOR")) && blockBelow.getType().equals(Material.getMaterial("OAK_DOOR"))
|| (target.getType().name().equals("IRON_DOOR") && blockBelow.getType().name().equals("IRON_DOOR"))
|| (target.getType().name().equals("SPRUCE_DOOR") && blockBelow.getType().name().equals("SPRUCE_DOOR"))
|| (target.getType().name().equals("BIRCH_DOOR") && blockBelow.getType().name().equals("BIRCH_DOOR"))
|| (target.getType().name().equals("JUNGLE_DOOR") && blockBelow.getType().name().equals("JUNGLE_DOOR"))
|| (target.getType().name().equals("ACACIA_DOOR") && blockBelow.getType().name().equals("ACACIA_DOOR"))
|| (target.getType().name().equals("DARK_OAK_DOOR") && blockBelow.getType().name().equals("DARK_OAK_DOOR"))
) {
if (target.getType().name().contains("_DOOR") && blockBelow.getType().name().equals(target.getType().name())) {
// Doors have an ambiguous location, but we only need to check
// the block below to disambiguate.
return blockBelow.getLocation();
Expand Down
41 changes: 40 additions & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,45 @@ protectables:
- CRIMSON_FENCE_GATE
- WARPED_DOOR
- WARPED_FENCE_GATE
- MANGROVE_BUTTON
- MANGROVE_DOOR
- MANGROVE_FENCE_GATE
- MANGROVE_PRESSURE_PLATE
- MANGROVE_TRAPDOOR
- CHERRY_BUTTON
- CHERRY_DOOR
- CHERRY_FENCE_GATE
- CHERRY_PRESSURE_PLATE
- CHERRY_TRAPDOOR
- BAMBOO_BUTTON
- BAMBOO_DOOR
- BAMBOO_FENCE_GATE
- BAMBOO_PRESSURE_PLATE
- BAMBOO_TRAPDOOR
- CHISELED_BOOKSHELF
- COPPER_DOOR
- EXPOSED_COPPER_DOOR
- OXIDIZED_COPPER_DOOR
- WAXED_COPPER_DOOR
- WAXED_EXPOSED_COPPER_DOOR
- WAXED_OXIDIZED_COPPER_DOOR
- WAXED_WEATHERED_COPPER_DOOR
- WEATHERED_COPPER_DOOR
- COPPER_TRAPDOOR
- EXPOSED_COPPER_TRAPDOOR
- OXIDIZED_COPPER_TRAPDOOR
- WAXED_COPPER_TRAPDOOR
- WAXED_EXPOSED_COPPER_TRAPDOOR
- WAXED_OXIDIZED_COPPER_TRAPDOOR
- WAXED_WEATHERED_COPPER_TRAPDOOR
- WEATHERED_COPPER_TRAPDOOR
- CRAFTER
- DECORATED_POT
- PALE_OAK_BUTTON
- PALE_OAK_DOOR
- PALE_OAK_FENCE_GATE
- PALE_OAK_PRESSURE_PLATE
- PALE_OAK_TRAPDOOR
tool: STICK
chatprefix: SL
populateplayers: true
populateplayers: false