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