From 2e2bcf91c26c79cd95e5a703036af80eb2f7a1b2 Mon Sep 17 00:00:00 2001 From: Danielle Voznyy Date: Sun, 22 Oct 2023 19:05:58 -0400 Subject: [PATCH] Update to paper-plugin --- gradle.properties | 2 +- .../deeperworld/DeeperWorldPlugin.kt | 5 ---- .../{plugin.yml => paper-plugin.yml} | 27 ++++++++++++++++--- 3 files changed, 24 insertions(+), 10 deletions(-) rename src/main/resources/{plugin.yml => paper-plugin.yml} (53%) diff --git a/gradle.properties b/gradle.properties index f4706db..57a9a40 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ group=com.mineinabyss version=0.9 -idofrontVersion=0.19.14 +idofrontVersion=0.20.1 diff --git a/src/main/kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt b/src/main/kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt index 3391a73..8a178a2 100644 --- a/src/main/kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt +++ b/src/main/kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt @@ -16,7 +16,6 @@ import com.mineinabyss.deeperworld.synchronization.SectionSyncListener import com.mineinabyss.deeperworld.world.WorldManagerImpl 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 com.mineinabyss.idofront.plugin.service import com.mineinabyss.idofront.time.ticks @@ -27,10 +26,6 @@ import org.bukkit.plugin.java.JavaPlugin val protocolManager: ProtocolManager = ProtocolLibrary.getProtocolManager() class DeeperWorldPlugin : JavaPlugin() { - override fun onLoad() { - Platforms.load(this, "mineinabyss") - } - override fun onEnable() { createDeeperWorldContext() service(WorldManagerImpl()) diff --git a/src/main/resources/plugin.yml b/src/main/resources/paper-plugin.yml similarity index 53% rename from src/main/resources/plugin.yml rename to src/main/resources/paper-plugin.yml index 68c7ea3..d579e4c 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/paper-plugin.yml @@ -7,10 +7,6 @@ description: A plugin for letting you create a deeper world. Or at least fake it softdepend: [Multiverse-Core, BlockLocker, ProtocolLib, FastAsyncWorldEdit] -commands: - deeperworld: - aliases: [ dw ] - permissions: deeperworld.*: description: Gives access to all commands @@ -19,3 +15,26 @@ permissions: deeperworld.admin: description: Have power to use admin comands default: op + +dependencies: + server: + Idofront: + required: true + load: BEFORE + join-classpath: true + BlockLocker: + required: false + load: BEFORE + join-classpath: true + ProtocolLib: + required: false + load: BEFORE + join-classpath: true + FastAsyncWorldEdit: + required: false + load: BEFORE + join-classpath: true + Multiverse-Core: + required: false + load: BEFORE + join-classpath: false