Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Update to paper-plugin, bump idofront, geary
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Nov 2, 2023
1 parent 8fc816b commit d3b7ec9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 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=0.12
idofrontVersion=0.19.14
idofrontVersion=0.20.6
2 changes: 1 addition & 1 deletion gradle/myLibs.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"

[libraries]
geary-papermc = { module = "com.mineinabyss:geary-papermc", version.ref = "gearyPaper" }
15 changes: 7 additions & 8 deletions src/main/kotlin/com/mineinabyss/looty/LootyPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package com.mineinabyss.looty
import com.mineinabyss.geary.autoscan.autoscan
import com.mineinabyss.geary.modules.geary
import com.mineinabyss.idofront.di.DI
import com.mineinabyss.idofront.platforms.Platforms
import com.mineinabyss.idofront.plugin.listeners
import com.mineinabyss.idofront.plugin.service
import com.mineinabyss.idofront.serialization.SerializablePrefabItemService
Expand All @@ -20,15 +19,8 @@ import org.bukkit.plugin.java.JavaPlugin

class LootyPlugin : JavaPlugin() {
override fun onLoad() {
Platforms.load(this, "mineinabyss")
}

override fun onEnable() {
DI.add(LootyModule(this))

//Reset to avoid duplicates and clear mixes that have been removed
server.potionBrewer.resetPotionMixes()

geary {
autoscan(classLoader, "com.mineinabyss.looty") {
all()
Expand All @@ -40,6 +32,13 @@ class LootyPlugin : JavaPlugin() {
PotionMixRecipeSystem(),
)
}
}

override fun onEnable() {

//Reset to avoid duplicates and clear mixes that have been removed
server.potionBrewer.resetPotionMixes()

service<SerializablePrefabItemService>(LootySerializablePrefabItemService())
LootyCommands() //Register commands

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Looty
version: ${plugin_version}
version: "${plugin_version}"
author: Offz
main: com.mineinabyss.looty.LootyPlugin
api-version: "1.20"
depend: [ Geary ]

prefix: Looty
description: Custom items for Geary ECS

commands:
looty:
description: The main looty command
usage: /looty [sub command]
dependencies:
server:
Geary:
required: true
load: BEFORE
join-classpath: true

0 comments on commit d3b7ec9

Please sign in to comment.