Skip to content

Commit bee8862

Browse files
committed
Warn if not paper server
1 parent ef9bb85 commit bee8862

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • bukkit/src/main/kotlin/io/github/rothes/esu/bukkit/module/vanillatweaks

bukkit/src/main/kotlin/io/github/rothes/esu/bukkit/module/vanillatweaks/SignBlock.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import io.github.rothes.esu.bukkit.util.extension.unregister
66
import io.github.rothes.esu.core.configuration.data.MessageData.Companion.message
77
import io.github.rothes.esu.core.module.CommonFeature
88
import io.github.rothes.esu.core.module.Feature
9+
import io.github.rothes.esu.core.module.Feature.AvailableCheck.Companion.errFail
910
import io.github.rothes.esu.core.module.configuration.BaseFeatureConfiguration
1011
import io.papermc.paper.event.player.PlayerOpenSignEvent
1112
import net.kyori.adventure.text.Component
@@ -30,7 +31,7 @@ object SignBlock: CommonFeature<Unit, Unit>() {
3031
override fun checkUnavailable(): Feature.AvailableCheck? {
3132
return super.checkUnavailable() ?: let {
3233
if (!ServerCompatibility.isPaper)
33-
return Feature.AvailableCheck.fail { "Requires Paper".message }
34+
return errFail { "Requires Paper".message }
3435
null
3536
}
3637
}

0 commit comments

Comments
 (0)