diff --git a/build.gradle.kts b/build.gradle.kts index 53d184f..5f701dd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } group = "top.e404" -version = "2.0.6" +version = "2.0.7" repositories { maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") diff --git a/src/main/kotlin/listener/InteractListener.kt b/src/main/kotlin/listener/InteractListener.kt index 8afc382..0ea3f9e 100644 --- a/src/main/kotlin/listener/InteractListener.kt +++ b/src/main/kotlin/listener/InteractListener.kt @@ -23,7 +23,7 @@ object InteractListener : EListener(PL) { val world = block.world.name val location = block.location // 床 - if ("BED" in type) { + if (type.endsWith("_BED") || type == "BED") { val cfg = Config.getEachOrGlobal(world) { preventUseBed } if (cfg != null && cfg.enable) { plugin.debug( @@ -48,7 +48,7 @@ object InteractListener : EListener(PL) { return } // ι‡η”Ÿι”š - if (block.type.name == "RESPAWN_ANCHOR") { + if (type == "RESPAWN_ANCHOR") { val cfg = Config.getEachOrGlobal(world) { preventUseRespawnAnchor } if (cfg != null && cfg.enable