Spigot LightAPI Fork 3.4.1

Plugin support continuation

  1. bottomdumber submitted a new resource:

    LightAPI Temporary Fork 3.2.4 + 1.12 - Temporary fork for LightAPI 3.2.4

    Read more about this resource...
  2. #3 bottomdumber, Dec 13, 2017
    Last edited: Dec 13, 2017
  3. SlimeDog


    Spigot 1.12.2 latest build
    LightAPI 3.2.4 X.12.0 (this fork)

    Occasionally get this
    Code (Text):
    [21:39:32][Server thread/INFO]: [LightAPI] Enabling LightAPI v3.2.4-X.12.0
    [21:39:32] [Server thread/INFO]: <LightAPI>: Loading handler for Spigot git-Spigot-bb614f8-595eaaa (MC: 1.12.2)
    [21:39:32] [Server thread/ERROR]: Error occurred while enabling LightAPI v3.2.4-X.12.0 (Is it up to date?)
    java.lang.IllegalArgumentException: ru.beykerykt.lightapi.chunks
            at java.lang.ClassLoader.definePackage(ClassLoader.java:1594) ~[?:1.8.0_151]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:134) ~[spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:191) ~[spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:111) ~[spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100) ~[spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_151]
            at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_151]
            at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:1.8.0_151]
            at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[?:1.8.0_151]
            at java.lang.Class.privateGetPublicMethods(Class.java:2902) ~[?:1.8.0_151]
            at java.lang.Class.getMethods(Class.java:1615) ~[?:1.8.0_151]
            at org.bukkit.plugin.java.JavaPluginLoader.createRegisteredListeners(JavaPluginLoader.java:234) ~[spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at org.bukkit.plugin.SimplePluginManager.registerEvents(SimplePluginManager.java:525) ~[spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at ru.beykerykt.lightapi.LightAPI.onEnable(LightAPI.java:173) ~[?:?]
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403) [spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:381) [spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:330) [spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:422) [spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:383) [spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:338) [spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot-1.12.2.jar-2018-01-01-0713:git-Spigot-bb614f8-595eaaa]
            at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]
    Note that ShinyItems, which relies on LightAPI, still works.
    #4 SlimeDog, Jan 2, 2018
    Last edited: Jan 2, 2018
  4. Ok, I will look. But it is strange error. As I could understand it is occurred on server start. Hmm... Something wrong with java class loader:(
    How often does this error occur?
    If only I could reproduce it ...

    PS This error is at the end of enabling plugin and affects on:
    1. No messages to player with permission "lightapi.updater" on join event like: "You are running the latest version!" or "New update is available"
    2. No plugin metrics will be send to http://mcstats.org

    So, this is not critical error, but I will still look through it, if I will reproduce it
    #5 bottomdumber, Jan 2, 2018
    Last edited: Jan 2, 2018
  5. SlimeDog


    Glad to know that the error doesn't affect the use of LightAPI.

    As I mentioned above, the error occurs occasionally. I have no way of predicting when it does or doesn't occur. :(
  6. bottomdumber updated LightAPI Temporary Fork with a new update entry:

    Fix exception IllegalArgumentException on spigot 1.12.2 server starts

    Read the rest of this update entry...
  7. Has anyone had issues with lights not always removing when calling deleteLight?

    I've got a system that calls create/delete repeatedly for a light that follows the player around, I'm pretty sure I'm always calling them in pairs- but sometimes light sticks around.

    I'd also be curious if anyone has explored trying to do this with just packet sending ... I'd prefer that approach, but honestly the NMS used in this plugin is kind of over my head.

    Thanks for keeping it updated, anyway!
  8. Why only show the light when the player rejoins the game?
  9. This is because of plugin (you use) does not call methods to update chunks or send packets to client.
    What plugin do you use?
  10. Working in 1.13 atm or does it need to be updated?
  11. [19:47:50 INFO]: <LightAPI>: New update is available: 3.2.5 - Showing in console
  12. Not yet
    Console says it's outdated, because my last fork 3.2.4-X is still looking for updates in author's repository. My fork was build before author accepted last changes. Then author accepted changes and build it as final 3.2.5
    So my 3.2.4-X = his 3.2.5
    You can use my 3.2.4-X or this 3.2.5. They are identical.
    To suppress warnings about update you can set in config.yml updater: enable: false

    When my new version 3.2.6 for 1.13 will be ready, I will certainly inform about this here and there.
    • Like Like x 1
    • Useful Useful x 1
  13. Who is ready to test new version with spigot 1.13?:)

    You can download temporary version for spigot 1.13 here:

    Please, test it and tell me if everything is all right or not :)
    Or let me know which plugins using LightAPI are already updated to spigot 1.13, and I will later test it myself;)
    #14 bottomdumber, Jul 23, 2018
    Last edited: Jul 23, 2018
  14. SlimeDog


    ShinyItems 1.6.3 does not play well with the new LightAPI on Spigot 1.13. :(
  15. Ok. I will test it. But I have noticed that ShinyItems was not updated to spigot 1.13 ;)
    Also tell me please what "does not play well" mean:)
  16. SlimeDog


    It means that it doesn't work. I posted a note to ShinyItems.
  17. I found error. Please wait.. I will correct it :)
    • Like Like x 1
  18. #19 bottomdumber, Jul 23, 2018
    Last edited: Jul 23, 2018
  19. SlimeDog


    Confirmed, works correctly on Spigot 1.13 with LightAPI 3.2.6 and ShinyItems 1.6.3.
    • Like Like x 1