Skip to content

Commit

Permalink
build: update modrinth publication
Browse files Browse the repository at this point in the history
  • Loading branch information
Syrent committed Jun 2, 2024
1 parent 905e287 commit 234e30a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ allprojects {
plugins.apply("maven-publish")
plugins.apply("kotlin")
plugins.apply("io.github.goooler.shadow")
plugins.apply("com.modrinth.minotaur")

repositories {
mavenCentral()
Expand Down Expand Up @@ -209,6 +208,7 @@ for (module in modrinthModules) {
projectId.set("${property("modrinthProjectID")}")
versionNumber.set((if (isRelease) versionString else publishVersion) + "-${module.name.lowercase()}")
versionType.set(System.getenv("MODRINTH_BUILD_CHANNEL") ?: "beta")
uploadFile.set(project(":sayanvanish-bukkit").tasks.shadowJar.flatMap { it.archiveFile })
when (module) {
Module.BUKKIT -> {
uploadFile.set(project(":sayanvanish-bukkit").tasks.shadowJar.flatMap { it.archiveFile })
Expand Down Expand Up @@ -237,4 +237,4 @@ for (module in modrinthModules) {

syncBodyFrom.set(rootProject.file("README.md").readText())
}
}
}
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/org/sayandev/Repositories.kt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ val placeholderAPI = Dependency(
modules = listOf(Module.BUKKIT)
)

val stickynoteVersion = "1.0.32"
const val stickynoteVersion = "1.0.32"

val stickynoteCore = Dependency(
group = "org.sayandev",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import org.bukkit.event.player.PlayerJoinEvent
import org.bukkit.event.player.PlayerQuitEvent
import org.sayandev.sayanvanish.api.Permission
import org.sayandev.sayanvanish.api.VanishOptions
import org.sayandev.sayanvanish.api.feature.Configurable
import org.sayandev.sayanvanish.api.feature.RegisteredFeature
import org.sayandev.sayanvanish.bukkit.api.SayanVanishBukkitAPI
import org.sayandev.sayanvanish.bukkit.api.SayanVanishBukkitAPI.Companion.getOrCreateUser
Expand All @@ -19,11 +20,11 @@ import org.sayandev.stickynote.lib.spongepowered.configurate.objectmapping.Confi
@RegisteredFeature
@ConfigSerializable
class FeatureState(
val remember: Boolean = true,
val vanishOnJoin: Boolean = false,
val reappearOnQuit: Boolean = false,
val checkPermissionOnQuit: Boolean = false,
val checkPermissionOnJoin: Boolean = false,
@Configurable val remember: Boolean = true,
@Configurable val vanishOnJoin: Boolean = false,
@Configurable val reappearOnQuit: Boolean = false,
@Configurable val checkPermissionOnQuit: Boolean = false,
@Configurable val checkPermissionOnJoin: Boolean = false,
) : ListenedFeature("state") {

@EventHandler(priority = EventPriority.LOWEST)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
package org.sayandev.sayanvanish.bukkit.feature.features.prevent

import org.bukkit.block.Chest
import org.bukkit.block.Container
import org.bukkit.event.EventHandler
import org.bukkit.event.block.Action
import org.bukkit.event.player.PlayerInteractEvent
import org.sayandev.sayanvanish.api.feature.Configurable
import org.sayandev.sayanvanish.api.feature.RegisteredFeature
import org.sayandev.sayanvanish.api.feature.category.FeatureCategories
import org.sayandev.sayanvanish.bukkit.api.SayanVanishBukkitAPI.Companion.user
import org.sayandev.sayanvanish.bukkit.feature.ListenedFeature
import org.sayandev.stickynote.bukkit.warn
import org.sayandev.stickynote.lib.spongepowered.configurate.objectmapping.ConfigSerializable
import kotlin.text.contains

@RegisteredFeature
@ConfigSerializable
class FeaturePreventInteract(
val pressurePlateTrigger: Boolean = true,
val dripLeaf: Boolean = true,
val interact: Boolean = true,
@Configurable val pressurePlateTrigger: Boolean = true,
@Configurable val dripLeaf: Boolean = true,
@Configurable val interact: Boolean = true,
) : ListenedFeature("prevent_interact_event", category = FeatureCategories.PREVENTION) {

@EventHandler
Expand Down

0 comments on commit 234e30a

Please sign in to comment.