Spigot DualWield 2.5

Off-hand attacking and tool usage, use your weapons and tools in the off-hand! Free and Open Source!

  1. Love this idea and from what I've experienced, it does work.

    But any way you can make it work with itemadder? I have some items that have a usage, and basically your duelwield makes it act like its in the main hand, but just removes the item completely, itemadder doesn't get its usage (the item is a firework)

    Just wondering if there can be a whitelist for consumed items? so the other plugin can do it itself?
  2. I have not used ItemsAdder before and I don't own it so I didn't get to test it while creating the plugin, what exactly does the plugin and the item do? I could add a config option to ignore items with say certain lore, does it not work with all ItemsAdder items or just this one?
  3. DW I believe its resolved now, after a lil chat with the dev, really nice guy, plugin works perfectly fine just a config issue elsewhere it seems :)
  4. Code (Java):
    05.08 18:00:25 [Server] ERROR Could not pass event PlayerInteractEntityEvent to DualWield v1.0
    05.08 18:00:25 [Server] INFO java.lang.NullPointerException: null
    05.08 18:00:25 [Server] INFO at com.ranull.dualwield.nms.NMS_v1_16_R1.getAttackDamage(NMS_v1_16_R1.java:79) ~[?:?]
    05.08 18:00:25 [Server] INFO at com.ranull.dualwield.nms.NMS_v1_16_R1.attackEntityOffHand(NMS_v1_16_R1.java:117) ~[?:?]
    05.08 18:00:25 [Server] INFO at com.ranull.dualwield.managers.WieldManager.attackEntity(WieldManager.java:186) ~[?:?]
    05.08 18:00:25 [Server] INFO at com.ranull.dualwield.events.Events.onPlayerInteractEntity(Events.java:71) ~[?:?]
    05.08 18:00:25 [Server] INFO at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor334.execute(Unknown Source) ~[?:?]
    05.08 18:00:25 [Server] INFO at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.PlayerConnection.a(PlayerConnection.java:2153) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:49) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:6) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:43) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.TickTask.run(SourceFile:18) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.MinecraftServer.aZ(MinecraftServer.java:1205) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.MinecraftServer.executeNext(MinecraftServer.java:1198) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:95) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.MinecraftServer.a(MinecraftServer.java:1329) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:1008) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$a$0(MinecraftServer.java:178) ~[patched_1.16.1.jar:git-Purpur-695]
    05.08 18:00:25 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
  5. Ranull updated DualWield with a new update entry:

    Bug Fixes

    Read the rest of this update entry...
  6. Thanks for reporting! I just fixed it in the latest version.
    • Like Like x 1
  7. When using tools in the offhand, blocks are broken faster for some reason.
  8. I created a custom system for the player to break blocks in the offhand, I tried to make the speed as close as possible but some things are slightly slower and others are slightly faster, what tool are you using and what blocks are you breaking and I will look to see if it's possible to make it match more.
  9. For instance, breaking Sand with a Diamond Pickaxe in offland, is comparable to a Stone Shovel. I didn't test all blocks, but that was the first thing I saw.
  10. I tested it and a stone shovel seems to still be faster, what version are you running?
  11. The latest one.
  12. Ranull updated DualWield with a new update entry:

    Bug Fixes, Async and More Version Support

    Read the rest of this update entry...
  13. Please add the option to limit this to players with a permission to use it so that I can include it as part of a class build - Thanks!
  14. Great idea, I thought about adding this already, I guess I forgot to in this build, I will add it for the next release! :)
  15. I found another bug: The players in Spectator still can attack other players.
  16. and you can right click to break blocks and attack mobs with main hand.
  17. Hi! Does this support custom damage and hit values?
  18. Question to anyone using this - does it affect the way the player interacts with villagers, buttons, levers, cows, etc in any way?
  19. You can break blocks and attack entities using right click with nothing in the off-hand, this is the same as punching normally, but since there is no item in the off-hand there was no animation and it looked weird, I can not add a second hand for the animation to play so I just played it on the main-hand so it feels better, I could remove the ability to punch with the off-hand. Although I thought this was a neat feature.