Skip to content

Commit

Permalink
[6.2.0][dev] 修复 @Inject 缺失
Browse files Browse the repository at this point in the history
  • Loading branch information
Bkm016 committed Sep 22, 2024
1 parent 7ea9d54 commit 0791660
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=taboolib
version=6.2.0-beta12
version=6.2.0-beta13
kotlin.incremental=true
kotlin.incremental.java=true
kotlin.caching.enabled=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ import org.bukkit.event.inventory.ClickType
import org.bukkit.event.inventory.InventoryClickEvent
import org.bukkit.inventory.Inventory
import org.bukkit.inventory.ItemStack
import taboolib.common.Inject
import taboolib.common.OpenListener
import taboolib.common.OpenResult
import taboolib.common.event.InternalEventBus
import taboolib.common.platform.Awake
import taboolib.common.platform.Platform
import taboolib.common.platform.PlatformSide
import taboolib.common.platform.function.getOpenContainers
import taboolib.module.nms.MinecraftVersion
import taboolib.module.nms.PacketSendEvent
Expand Down Expand Up @@ -56,6 +59,8 @@ fun enableRawTitleInVanillaInventory() {
}

@Awake
@Inject
@PlatformSide(Platform.BUKKIT)
class RawTitleOpenListener : OpenListener {

override fun call(name: String, data: Array<out Any>?): OpenResult {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
package taboolib.module.kether

import org.tabooproject.reflex.Reflex.Companion.getProperty
import taboolib.common.Inject
import taboolib.common.OpenListener
import taboolib.common.OpenResult
import taboolib.common.io.groupId
import taboolib.common.platform.Awake
import taboolib.common.platform.Platform
import taboolib.common.platform.PlatformSide
import taboolib.common.platform.function.getOpenContainer
import taboolib.common.util.asList
import taboolib.library.kether.ExitStatus
import taboolib.library.kether.ParsedAction

@Awake
@Inject
@PlatformSide(Platform.BUKKIT)
object StandardChannel : OpenListener {

const val REMOTE_RESOLVE = "kether_remote_resolve"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package taboolib.platform

import net.afyer.afybroker.server.Broker
import net.afyer.afybroker.server.proxy.BrokerPlayer
import taboolib.common.Inject
import taboolib.common.platform.*
import taboolib.common.platform.service.PlatformAdapter
import taboolib.common.util.Location
Expand All @@ -16,6 +17,7 @@ import taboolib.platform.type.AfyBrokerPlayer
* @since 2024/5/09 23:51
*/
@Awake
@Inject
@PlatformSide(Platform.AFYBROKER)
class AfyBrokerAdapter : PlatformAdapter {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import net.afyer.afybroker.server.Broker
import net.afyer.afybroker.server.plugin.Command
import net.afyer.afybroker.server.plugin.TabExecutor
import org.tabooproject.reflex.Reflex.Companion.getProperty
import taboolib.common.Inject
import taboolib.common.platform.Awake
import taboolib.common.platform.Platform
import taboolib.common.platform.PlatformSide
Expand All @@ -25,6 +26,7 @@ import taboolib.platform.type.AfyBrokerCommandSender
* @since 2024/5/09 23:51
*/
@Awake
@Inject
@PlatformSide(Platform.AFYBROKER)
class AfyBrokerCommand : PlatformCommand {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package taboolib.platform

import taboolib.common.Inject
import taboolib.common.LifeCycle
import taboolib.common.platform.Awake
import taboolib.common.platform.Platform
Expand All @@ -17,6 +18,7 @@ import java.util.concurrent.TimeUnit
* @since 2021/6/16 0:43
*/
@Awake
@Inject
@PlatformSide(Platform.AFYBROKER)
class AfyBrokerExecutor : PlatformExecutor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package taboolib.platform
import org.apache.commons.lang3.time.DateFormatUtils
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import taboolib.common.Inject
import taboolib.common.env.RuntimeDependency
import taboolib.common.io.newFile
import taboolib.common.platform.Awake
Expand All @@ -20,6 +21,7 @@ import java.io.File
* @since 2024/5/09 23:51
*/
@Awake
@Inject
@PlatformSide(Platform.AFYBROKER)
@RuntimeDependency(
value = "!org.apache.commons:commons-lang3:3.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import net.afyer.afybroker.server.plugin.EventBus
import net.afyer.afybroker.server.plugin.Listener
import org.tabooproject.reflex.Reflex.Companion.getProperty
import org.tabooproject.reflex.Reflex.Companion.invokeMethod
import taboolib.common.Inject
import taboolib.common.platform.Awake
import taboolib.common.platform.Platform
import taboolib.common.platform.PlatformSide
Expand All @@ -17,6 +18,7 @@ import java.lang.reflect.Method


@Awake
@Inject
@PlatformSide(Platform.AFYBROKER)
class AfyBrokerListener : PlatformListener {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package taboolib.platform

import net.afyer.afybroker.server.Broker
import taboolib.common.Inject
import taboolib.common.OpenContainer
import taboolib.common.platform.Awake
import taboolib.common.platform.Platform
Expand All @@ -17,6 +18,7 @@ import taboolib.platform.type.AfyBrokerContainer
* @since 2021/6/21 14:28
*/
@Awake
@Inject
@PlatformSide(Platform.AFYBROKER)
class AfyBrokerOpenContainer : PlatformOpenContainer {

Expand Down

0 comments on commit 0791660

Please sign in to comment.