Spigot BountyHunters Legacy 2.2.6

Kill players, claim bounties!

  1. Is it possible to make it so if you have own-bounty-claiming set to false, you can't target the player you put the bounty on?

    Right now if they set the bounty, they can still target that player and kill them, and they just don't get the reward. I think preventing targeting of your own bounty target would reduce players getting confused thinking they didn't receive their reward for claiming the bounty.
     
    • Agree Agree x 1
  2. This plugin is amazing! However there is a bug when removing a bounty:
    Code (Text):
    15.11 03:43:27 [Server] ERROR Could not pass event InventoryClickEvent to BountyHunters v2.1.5
    15.11 03:43:27 [Server] INFO org.bukkit.event.EventException: null
    15.11 03:43:27 [Server] INFO at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:72) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:513) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:2280) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at net.minecraft.server.v1_13_R2.PacketPlayInWindowClick.a(SourceFile:33) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at net.minecraft.server.v1_13_R2.PacketPlayInWindowClick.a(SourceFile:10) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:12) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_161]
    15.11 03:43:27 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_161]
    15.11 03:43:27 [Server] INFO at net.minecraft.server.v1_13_R2.SystemUtils.a(SystemUtils.java:109) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1016) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:943) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:841) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
    15.11 03:43:27 [Server] INFO Caused by: java.lang.RuntimeException: The operation to load user data for '1aa0df8e-e4ea-4ba3-bd3b-4ca0561c12c3' was cancelled by LuckPerms. This is NOT a bug.
    15.11 03:43:27 [Server] INFO The lookup request was made on the main server thread. It is not safe to execute a request to
    15.11 03:43:27 [Server] INFO load username data from the database in this context.
    15.11 03:43:27 [Server] INFO If you are a plugin author, please consider making your request asynchronously.
    15.11 03:43:27 [Server] INFO Alternatively, server admins can disable this catch by setting 'vault-unsafe-lookups' to true
    15.11 03:43:27 [Server] INFO in the LP config, but should consider the consequences (lag) before doing so.
    15.11 03:43:27 [Server] INFO at me.lucko.luckperms.bukkit.vault.VaultPermissionHook.lookupUser(VaultPermissionHook.java:136) ~[?:?]
    15.11 03:43:27 [Server] INFO at me.lucko.luckperms.bukkit.vault.VaultPermissionHook.userHasPermission(VaultPermissionHook.java:162) ~[?:?]
    15.11 03:43:27 [Server] INFO at me.lucko.luckperms.bukkit.vault.AbstractVaultPermission.playerHas(AbstractVaultPermission.java:154) ~[?:?]
    15.11 03:43:27 [Server] INFO at net.Indyuce.bountyhunters.gui.BountyList.whenClicked(BountyList.java:169) ~[?:?]
    15.11 03:43:27 [Server] INFO at net.Indyuce.bountyhunters.gui.listener.GuiListener.a(GuiListener.java:20) ~[?:?]
    15.11 03:43:27 [Server] INFO at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor371.execute(Unknown Source) ~[?:?]
    15.11 03:43:27 [Server] INFO at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70) ~[custom.jar:git-Paper-442]
    15.11 03:43:27 [Server] INFO ... 15 more
    It actually seems a few things are not working. Such as BountyLeaderbord. I get met with "Internal Error" Is this normal? Please and thank you :)
     
    #183 Ajsmith0429, Nov 15, 2018
    Last edited: Nov 15, 2018
  3. Indyuce updated Bounty Hunters with a new update entry:

    [2.2] API update, Leaderboard fix

    Read the rest of this update entry...
     
  4. Make it so it works with Vault
     
  5. [​IMG]
     
    • Funny Funny x 2
  6. Help me with this problem:
    [​IMG]
     
  7. Any MySQL option in future?
     
  8. Can't remove players bounties if they get banned. Awesome plugin tho sir!
     
  9. The only way to remove bounties of banned offline players would be to manually remove them from the data.yml file while the server is off
     
  10. I cant seem to get /bounties to work it gives me a null error, not such if its my version (currenly using 2.2) or if I need something for the plugin to work :I
     
  11. If you've updated recently to a newer version, you will have to do a full data reset while the server is down
     
  12. That is what I did, but the I just use the previous update, that seems to work fine :)
     
  13. Hey, Indyuce! I think BountyHunters doesn't work 1.11.2 servers. Here's the error log:

    [23:58:25 INFO]: Auntex issued server command: /bounties [23:58:25 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'bounties' in plugin BountyHunters v2.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[patched_1.11.2.jar:git-Paper-1104] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:151) ~[patched_1.11.2.jar:git-Paper-1104] at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand(CraftServer.java:675) ~[patched_1.11.2.jar:git-Paper-1104] at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1393) ~[patched_1.11.2.jar:git-Paper-1104] at net.minecraft.server.v1_11_R1.PlayerConnection.chat(PlayerConnection.java:1302) ~[patched_1.11.2.jar:git-Paper-1104] at org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer.chat(CraftPlayer.java:330) ~[patched_1.11.2.jar:git-Paper-1104] at me.mattmoreira.citizenscmd.Listeners.NPCListener.onRightClick(NPCListener.java:163) ~[?:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor448.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.execute(EventExecutor.java:44) ~[patched_1.11.2.jar:git-Paper-1104] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[patched_1.11.2.jar:git-Paper-1104] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.11.2.jar:git-Paper-1104] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) ~[patched_1.11.2.jar:git-Paper-1104] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502) ~[patched_1.11.2.jar:git-Paper-1104] at net.citizensnpcs.EventListen.onPlayerInteractEntity(EventListen.java:419) ~[?:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor294.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.execute(EventExecutor.java:44) ~[patched_1.11.2.jar:git-Paper-1104] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[patched_1.11.2.jar:git-Paper-1104] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.11.2.jar:git-Paper-1104] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) ~[patched_1.11.2.jar:git-Paper-1104] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502) ~[patched_1.11.2.jar:git-Paper-1104] at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1576) ~[patched_1.11.2.jar:git-Paper-1104] at net.minecraft.server.v1_11_R1.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:49) ~[patched_1.11.2.jar:git-Paper-1104] at net.minecraft.server.v1_11_R1.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:6) ~[patched_1.11.2.jar:git-Paper-1104] at net.minecraft.server.v1_11_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[patched_1.11.2.jar:git-Paper-1104] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_191] at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [patched_1.11.2.jar:git-Paper-1104] at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:839) [patched_1.11.2.jar:git-Paper-1104] at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:403) [patched_1.11.2.jar:git-Paper-1104] at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:763) [patched_1.11.2.jar:git-Paper-1104] at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:661) [patched_1.11.2.jar:git-Paper-1104] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191] Caused by: java.lang.NullPointerException at java.lang.String.replace(String.java:2240) ~[?:1.8.0_191] at net.Indyuce.bountyhunters.gui.BountyList.getInventory(BountyList.java:60) ~[?:?] at net.Indyuce.bountyhunters.gui.PluginInventory.open(PluginInventory.java:16) ~[?:?] at net.Indyuce.bountyhunters.command.BountiesCommand.onCommand(BountiesCommand.java:39) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[patched_1.11.2.jar:git-Paper-1104] ... 31 more

    Is there a way to make it work on 1.11.2?
     
    #194 Auntex, Jan 23, 2019
    Last edited: Jan 23, 2019
  14. Try to back up your /BountyHunters plugin folder and remove it while the server is off, restart your server and the issue should be fixed. This issue usually happens after you update the plugin to 2.1 or 2.2 from an older version like 1.4
     
  15. This works without problems! Thank you very much Indyuce!
     
  16. I had this problem too. All the users should try this to fix it.
     
    • Agree Agree x 1
  17. Is this plugin compatible with JobsReborn? That when you kill a player the exp you gain is gained in JobsReborn exp?
    I'd like all my different jobs to use the same exp system.

    I also had the idea of police roles that act the same as bounty hunters but the killed player would restart in a jail perhaps?
     
  18. Players don't gain exp but money tho