Spigot doesn't follow 'softdepend'

Discussion in 'Spigot Plugin Development' started by Coder, May 6, 2015.

  1. I'm currently lost with a problem I cannot solve. The problem is simple: My plugin requires HologrpahicDisplays to load, but it's enabled after mine:

    Code (Text):
    [Server thread/INFO]: Starting minecraft server version 1.8.3
    ...
    [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-2ec6f06-7722428 (MC: 1.8.3) (Implementing API version 1.8.3-R0.1-SNAPSHOT)
    ...
    [Server thread/INFO]: [CombatIndicator] Loading CombatIndicator v2.0.6
    ...
    [Server thread/INFO]: [HolographicDisplays] Loading HolographicDisplays v2.1.9
    ...
    [Server thread/INFO]: [CombatIndicator] Enabling CombatIndicator v2.0.6
    [Server thread/ERROR]: [CombatIndicator] *** No plugin for holograms installed and enabled. ***
    [Server thread/ERROR]: [CombatIndicator] *** This plugin will be disabled. ***
    ...
    [Server thread/INFO]: [HolographicDisplays] Enabling HolographicDisplays v2.1.9
    [Server thread/INFO]: [HolographicDisplays] Found ProtocolLib, adding support for player relative variables.
    ...
    [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [Server thread/INFO]: Done (8.687s)! For help, type "help" or "?"
    ...
    Yes, I added HologrpahicDisplays to my plugin.yml:
    Code (Text):

    name: CombatIndicator
    version: 2.0.6
    main: me.coder.combatindicator.Main
    softdepend: [HolographicDisplays, HoloAPI]
     
    I'm really confused, why Spigot doesn't enable HolographicDisplays first... On my test server (and some otherone's) everything works great, but on that person's server it doesn't.

    Thanks.
     
  2. Try using depend, since you disable it if it isn't there, it isn't a huge problem to change that
     
  3. I doubt it works with 'depend' if it doesn't with 'softdepend'. Also, softdepends has multiple advantages (e.g. a self made error message, possibility to use other hologram plugins, etc.).
     
  4. @Coder you could do the hologram-related initializations it a tick later
     
  5. I'm probably going to do that, however it should work as it is... Might be a bug in Spigot?o_O
     
  6. If u say that everything works fine on your server maybe the person on his server is doing something wrong ?
     
  7. Give the person the jar you are using, if he's having his server hosted on a website, in most cases you can upload a custom jar
     
  8. try load-after:
     
  9. Does this entry exist?
     
  10. It might be loadafter or something. You will have to look it up as I can't do it right now as I am at school.
     
  11. Use
    Code (Text):
    loadbefore: [OnePlugin, AnotherPlugin]
    Source
     
    • Like Like x 1
  12. Your using craft bukkit NOT SPIGOT!
     
  13. Shouldn't matter

    EDIT: He uses Spigot, I use spigot and get the same message
     
  14. You get that craftbukkit message on spigot as well...
    [​IMG]
     
    #15 TheLightMC2, May 7, 2015
    Last edited: May 7, 2015
    • Funny Funny x 2
  15. 28091

    28091 Previously FloThePony

    version git-Spigot
     
    • Agree Agree x 1