Skip to content

Commit

Permalink
Use paper-plugin, geary 0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Nov 4, 2023
1 parent c38072e commit 1469e90
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
group=com.mineinabyss
version=1.8
idofrontVersion=0.19.14
idofrontVersion=0.20.6
2 changes: 1 addition & 1 deletion gradle/bfLibs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
gearyPaper = "0.26.0"
gearyPaper = "0.27.0"
blocky = "0.8.4"
protocolburrito = "0.8.0"

Expand Down
15 changes: 6 additions & 9 deletions src/main/kotlin/com/mineinabyss/bonfire/BonfirePlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,24 @@ import com.mineinabyss.geary.autoscan.autoscan
import com.mineinabyss.geary.modules.geary
import com.mineinabyss.idofront.config.config
import com.mineinabyss.idofront.di.DI
import com.mineinabyss.idofront.platforms.Platforms
import com.mineinabyss.idofront.plugin.listeners
import org.bukkit.plugin.java.JavaPlugin

class BonfirePlugin : JavaPlugin() {
override fun onLoad() {
Platforms.load(this, "mineinabyss")
registerBonfireContext()
geary {
autoscan(classLoader, "com.mineinabyss.bonfire") {
all()
}
}
}

override fun onEnable() {
registerBonfireContext()

BonfireCommands()

listeners(PlayerListener(), BonfireListener(), DebugListener())

geary {
autoscan(classLoader, "com.mineinabyss.bonfire") {
all()
}
}
}

fun registerBonfireContext() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
name: Bonfire
version: ${plugin_version}
version: "${plugin_version}"
main: com.mineinabyss.bonfire.BonfirePlugin
api-version: "1.20"
authors: [ boy0000, Scyu_, Norazan, Ru_Kira ]
depend: [ Geary, Blocky ]
softdepend: [ DeeperWorld ]

commands:
bonfire:
aliases: [ bf ]

permissions:
bonfire.*:
Expand All @@ -18,3 +12,18 @@ permissions:
bonfire.remove:
description: Allow staff to remove bonfires.
default: op

dependencies:
server:
Geary:
required: true
load: BEFORE
join-classpath: true
Blocky:
required: true
load: BEFORE
join-classpath: true
DeeperWorld:
required: false
load: BEFORE
join-classpath: true

0 comments on commit 1469e90

Please sign in to comment.