File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
src/main/kotlin/dev/slne/surf/essentials Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 11kotlin.code.style =official
22kotlin.stdlib.default.dependency =false
33org.gradle.parallel =true
4- version =1.21.10-2.0.5 -SNAPSHOT
4+ version =1.21.10-2.0.6 -SNAPSHOT
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ object PaperCommandManager {
2525 giveCommand()
2626 infoCommand()
2727 itemEditCommand()
28- signCommand()
2928 teleportCommand()
3029 teleportOfflineCommand()
3130 teleportRandomCommand()
@@ -62,7 +61,12 @@ object PaperCommandManager {
6261 soundCommand()
6362 stopCommand()
6463 restartCommand()
65- makeSpecialCommand()
64+
65+ if (! plugin.isSurvivalServer()) {
66+ makeSpecialCommand()
67+ signCommand()
68+ }
69+
6670 knightCommand()
6771 toolCommand()
6872 experienceCommand()
Original file line number Diff line number Diff line change 11package dev.slne.surf.essentials
22
33import com.github.shynixn.mccoroutine.folia.SuspendingJavaPlugin
4+ import dev.slne.surf.surfapi.bukkit.api.extensions.pluginManager
45import org.bukkit.plugin.java.JavaPlugin
56
67val plugin get() = JavaPlugin .getPlugin(PaperMain ::class .java)
@@ -18,4 +19,6 @@ class PaperMain : SuspendingJavaPlugin() {
1819 override fun onDisable () {
1920 super .onDisable()
2021 }
22+
23+ fun isSurvivalServer () = pluginManager.isPluginEnabled(" surf-freebuild-bukkit" )
2124}
Original file line number Diff line number Diff line change 11package dev.slne.surf.essentials.listener
22
3+ import dev.slne.surf.essentials.plugin
34import dev.slne.surf.essentials.service.specialItemService
45import dev.slne.surf.essentials.util.util.appendNewLineArrow
56import dev.slne.surf.essentials.util.util.translatable
@@ -28,6 +29,10 @@ object SpecialItemListener : Listener {
2829 val player = event.entity as ? Player ? : return
2930 val itemStack = event.item.itemStack
3031
32+ if (plugin.isSurvivalServer()) {
33+ return
34+ }
35+
3136 if (! specialItemService.isSpecial(itemStack)) {
3237 return
3338 }
You can’t perform that action at this time.
0 commit comments