MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Mirai Economy Core 经济服务前置插件,支持多货币和事件系统

    插件发布
    economy 经济
    3
    4
    588
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cssxsh
      cssxsh last edited by cssxsh

      Mirai Economy Core

      Mirai 经济服务前置插件

      maven-central
      Jpa Economy Service Test
      Codacy Badge

      目前需要 Mirai Hibernate Plugin 前置才能使用

      使用方法 请转进 README

      1 Reply Last reply Reply Quote 2
      • Referenced by  MrXiaoM MrXiaoM 
      • Referenced by  MrXiaoM MrXiaoM 
      • Moyuyanli
        Moyuyanli last edited by

        怎么实现前置可选?@MrXiaoM

        MrXiaoM 1 Reply Last reply Reply Quote 0
        • MrXiaoM
          MrXiaoM 童心未泯 @Moyuyanli last edited by MrXiaoM

          @Moyuyanli
          首先在插件主类的插件信息那里加上

          dependsOn("xyz.cssxsh.mirai.plugin.mirai-economy-core", true)
          

          如果你是用 plugin.yml 来储存插件信息的,那就

          dependencies:
              - "xyz.cssxsh.mirai.plugin.mirai-economy-core?"
          

          然后写个像这样的工具类来处理有经济插件和无经济插件的情况就好。

          Moyuyanli 1 Reply Last reply Reply Quote 0
          • Moyuyanli
            Moyuyanli @MrXiaoM last edited by

            @MrXiaoM 好的,谢谢

            1 Reply Last reply Reply Quote 0
            • Referenced by  Moyuyanli Moyuyanli 
            • 1 / 1
            • First post
              Last post
            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact