mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
Feature/1.21.11 (#100)
This commit is contained in:
commit
b8da163e77
25 changed files with 1663 additions and 102 deletions
|
|
@ -19,8 +19,7 @@ import xyz.alexcrea.cuanvil.listener.AnvilResultListener
|
|||
import xyz.alexcrea.cuanvil.listener.ChatEventListener
|
||||
import xyz.alexcrea.cuanvil.listener.PrepareAnvilListener
|
||||
import xyz.alexcrea.cuanvil.update.PluginSetDefault
|
||||
import xyz.alexcrea.cuanvil.update.Update_1_21
|
||||
import xyz.alexcrea.cuanvil.update.plugin.PluginUpdates
|
||||
import xyz.alexcrea.cuanvil.update.UpdateHandler
|
||||
import xyz.alexcrea.cuanvil.util.Metrics
|
||||
import java.io.File
|
||||
import java.io.FileReader
|
||||
|
|
@ -145,7 +144,7 @@ open class CustomAnvil : JavaPlugin() {
|
|||
}
|
||||
|
||||
// Handle minecraft and plugin updates
|
||||
PluginUpdates.handleUpdates()
|
||||
UpdateHandler.handleUpdates()
|
||||
|
||||
// Register enchantment of compatible plugin and load configuration change.
|
||||
DependencyManager.handleCompatibilityConfig()
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import xyz.alexcrea.cuanvil.api.event.CAConfigReadyEvent
|
|||
import xyz.alexcrea.cuanvil.config.ConfigHolder
|
||||
import xyz.alexcrea.cuanvil.dependency.DependencyManager
|
||||
import xyz.alexcrea.cuanvil.gui.config.global.*
|
||||
import xyz.alexcrea.cuanvil.update.plugin.PluginUpdates
|
||||
import xyz.alexcrea.cuanvil.update.UpdateHandler
|
||||
|
||||
class ReloadExecutor : CommandExecutor {
|
||||
override fun onCommand(sender: CommandSender, cmd: Command, cmdstr: String, args: Array<out String>): Boolean {
|
||||
|
|
@ -49,7 +49,7 @@ class ReloadExecutor : CommandExecutor {
|
|||
CustomRecipeConfigGui.getCurrentInstance()?.reloadValues()
|
||||
|
||||
// handle minecraft version update
|
||||
PluginUpdates.handleMCVersionUpdate()
|
||||
UpdateHandler.handleMCVersionUpdate()
|
||||
|
||||
// Handle dependency reload
|
||||
DependencyManager.handleConfigReload()
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ object GuiTesterSelector {
|
|||
5 -> v1_21R4_ExternGuiTester()
|
||||
6, 7, 8 -> v1_21R5_ExternGuiTester()
|
||||
9, 10 -> v1_21R6_ExternGuiTester()
|
||||
11 -> v1_21R7_ExternGuiTester()
|
||||
else -> null
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ object PacketManagerSelector {
|
|||
5 -> V1_21R4_PacketManager()
|
||||
6, 7, 8 -> V1_21R5_PacketManager()
|
||||
9, 10 -> V1_21R6_PacketManager()
|
||||
11 -> V1_21R7_PacketManager()
|
||||
else -> null
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue