Resource HeadLib

Discussion in 'BungeeCord Plugin Development' started by Sataniel, Jul 27, 2018.

  1. I was trying to implement your lib but it doesnt worked out so well^^
    Code (Java):
    [18:36:13 INFO]: Blocklord issued server command: /sbshrink HAND
    [18:36:13 INFO]: º8(º4ºlFAWEº8)ºrº7 Using adapter: com.boydti.fawe.bukkit.adapter.v1_13_1.Spigot_v1_13_R2@2bd2da77
    [18:36:13 INFO]: º8(º4ºlFAWEº8)ºrº7 =========================================
    [18:36:13 ERROR]: HeadLib could not find a valid implementation for v1_13_R2.
    [18:36:13 WARN]: java.lang.NullPointerException
    [18:36:13 WARN]:        at de.sadlife.smallerblocks.utils.HeadLib.getSkullOwner(HeadLib.java:363)
    [18:36:13 WARN]:        at de.sadlife.smallerblocks.utils.HeadLib.toItemStack(HeadLib.java:462)
    [18:36:13 WARN]:        at de.sadlife.smallerblocks.utils.HeadLib.toItemStack(HeadLib.java:426)
    [18:36:13 WARN]:        at de.sadlife.smallerblocks.utils.HeadLib.toItemStack(HeadLib.java:416)
    [18:36:13 WARN]:        at de.sadlife.smallerblocks.methods.BlockShrinker.spawnArmorStand(BlockShrinker.java:152)
    [18:36:13 WARN]:        at de.sadlife.smallerblocks.methods.BlockShrinker.shrinkRegion(BlockShrinker.java:120)
    [18:36:13 WARN]:        at de.sadlife.smallerblocks.commands.ShrinkCommand.run(ShrinkCommand.java:57)
    [18:36:13 WARN]:        at de.sadlife.smallerblocks.commands.PlayerCommand.execute(PlayerCommand.java:24)
    [18:36:13 WARN]:        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
    [18:36:13 WARN]:        at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:704)
    [18:36:13 WARN]:        at net.minecraft.server.v1_13_R2.PlayerConnection.handleCommand(PlayerConnection.java:1621)
    [18:36:13 WARN]:        at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1461)
    [18:36:13 WARN]:        at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:45)
    [18:36:13 WARN]:        at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:1)
    [18:36:13 WARN]:        at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:9)
    [18:36:13 WARN]:        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    [18:36:13 WARN]:        at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
    [18:36:13 WARN]:        at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199)
    [18:36:13 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:896)
    [18:36:13 WARN]:        at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417)
    [18:36:13 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:831)
    [18:36:13 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:729)
    [18:36:13 WARN]:        at java.base/java.lang.Thread.run(Unknown Source)
    running 1.13.2 Spigot - the lib is not edited in any way

    calling the lib with:

    Code (Text):
    ArmorStand stand = loc.getWorld().spawn(loc, ArmorStand.class);
    stand.setItemInHand(HeadLib.CHECKMARK.toItemStack());
     
  2. Which version do you use? How does your build system setup look like? Is everything included in the jar at the correct position?
     
  3. it seems my maven can't find your 3.0.1 version ?
    [​IMG]
     
  4. Updated to 1.15.
     
  5. Updated to 1.16. Thanks to @LoneDev for the fix :)
     
    • Friendly Friendly x 1