Spigot MobHunting 8.0.4

Earn Money and get Skulls by killing Mobs and Players


  1. I've tested it and it works now. It's dropping bagofgold which is great!

    Also maybe add support for "Lands" like factions and towny.
     
  2. Hi, I've been having some issues with MobHunting not being able to load. I'm running version 8.0.4 of the plugin (though this issue has been happening since spigot/paper released for 1.17), and I'm running on a newly generated config with all integrations turned off.

    Heres the section of the log that shows the error: https://pastebin.com/5qjbD0Lg

    I'm running on paper 1.17.1 build 121 with the following plugins: https://i.imgur.com/mTtlfBr.png

    I'm thinking it has something to do with one of my worlds since the plugin runs fine on my local test server, but I'm hoping that isn't the case. Any help is appreciated!
     
  3. You should add a more customizable bounty GUI like create, remove, status. I think it's annoying that you need to create bounty to open the GUI.
     
  4. Im sorry, I dont have the time to make new features, but have you tried "/mh bounty" that should open a window with current bounties.

    If someone wants to help with the development please send me a PM.
     
    • Friendly Friendly x 1
  5. How to only use Vault and not drop money on ground? BagOfGold are helly buggy and I don't wanna use it.
     
  6. SlimeDog

    Moderator Patron

    This is discussed on the overview page
    and documented pretty clearly in MobHunting/config.yml
    Code (Text):
    # ########################################################################
    # DropMoneyOnGround for servers WITHOUT the BagOfGold plugin installed
    # ########################################################################
    dropmoneyonground:

      # When a player get a money reward for a kill, the money will go directly
      # into his pocket. If you set dropMoneyOnGround=true the reward will
      # dropped on ground to be picked up by the player.
      # Negative rewards will always be taken from the player.
      #
      # OBS Notice if you have the BagOfGold plugin installed these settings will be
      # overruled by the settings in BagOfGold config.yml !!!
      drop_money_on_ground: true
    Between the values and the comments, that pretty much says it all.
     
    #4228 SlimeDog, Aug 11, 2021
    Last edited: Aug 11, 2021
    • Agree Agree x 1

  7. But I'm not getting messages about when it goes into my pocket?
    I will try to do it again because I already tried that solution
     
  8. SlimeDog

    Moderator Patron

    Just because there are no messages (by default) doesn't mean that you're not getting rewards -- check your balance before and after a kill to verify.

    My messages are all set to blank, since I use BagOfGold rewards, so you'll have to sort that. The variable of interest is {prize} in the relevant messages.
     
    #4230 SlimeDog, Aug 11, 2021
    Last edited: Aug 11, 2021
  9. Ah. I see. That's the reason. Thank you! I'll try it out.
     
    • Winner Winner x 1
  10. Code (Text):
    [12.08 09:30:06] [Server] [ERROR] Error occurred while enabling MobHunting v8.0.5-SNAPSHOT (Is it up to date?)
    [12.08 09:30:06] [Server] java.lang.NoClassDefFoundErrorio/hotmail/com/jacob_vejvoda/infernal_mobs/infernal_mobs
    [12.08 09:30:06] [Server]     at one.lindegaard.MobHunting.compatibility.InfernalMobsCompat.getInfernalMobs(InfernalMobsCompat.java:58) ~[MobHunting-8.0.5-SNAPSHOT.jar:?]
    [12.08 09:30:06] [Server]     at one.lindegaard.MobHunting.compatibility.InfernalMobsCompat.<init>(InfernalMobsCompat.java:42) ~[MobHunting-8.0.5-SNAPSHOT.jar:?]
    [12.08 09:30:06] [Server]     at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
    [12.08 09:30:06] [Server]     at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78) ~[?:?]
    [12.08 09:30:06] [Server]     at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
    [12.08 09:30:06] [Server]     at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
    [12.08 09:30:06] [Server]     at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?]
    [12.08 09:30:06] [Server]     at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:350) ~[?:?]
    [12.08 09:30:06] [Server]     at java.lang.Class.newInstance(Class.java:642) ~[?:?]
    [12.08 09:30:06] [Server]     at one.lindegaard.MobHunting.compatibility.CompatibilityManager.register(CompatibilityManager.java:51) ~[MobHunting-8.0.5-SNAPSHOT.jar:?]
    [12.08 09:30:06] [Server]     at one.lindegaard.MobHunting.compatibility.CompatibilityManager.registerPlugin(CompatibilityManager.java:30) ~[MobHunting-8.0.5-SNAPSHOT.jar:?]
    [12.08 09:30:06] [Server]     at one.lindegaard.MobHunting.MobHunting.onEnable(MobHunting.java:277) ~[MobHunting-8.0.5-SNAPSHOT.jar:?]
    [12.08 09:30:06] [Server]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 09:30:06] [Server]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 09:30:06] [Server]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 09:30:06] [Server]     at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:529) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 09:30:06] [Server]     at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:443) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 09:30:06] [Server]     at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:639) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 09:30:06] [Server]     at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:306) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 09:30:06] [Server]     at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1126) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 09:30:06] [Server]     at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 09:30:06] [Server]     at java.lang.Thread.run(Thread.java:831) [?:?]
    [12.08 09:30:06] [Server] Caused byjava.lang.ClassNotFoundException: io.hotmail.com.jacob_vejvoda.infernal_mobs.infernal_mobs
    [12.08 09:30:06] [Server]     at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:146) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 09:30:06] [Server]     at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 09:30:06] [Server]     at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
    [12.08 09:30:06] [Server]     ... more
    I am also getting this error with InfernalMobs.

    Code (Text):
    [12.08 10:08:00] [Server] [ERROR] Could not pass event EntityDeathEvent to MobHunting v8.0.5-SNAPSHOT
    [12.08 10:08:00] [Server] java.lang.IndexOutOfBoundsExceptionNo group 5
    [12.08 10:08:00] [Server]     at java.util.regex.Matcher.start(Matcher.java:482) ~[?:?]
    [12.08 10:08:00] [Server]     at java.util.regex.Matcher.appendExpandedReplacement(Matcher.java:1090) ~[?:?]
    [12.08 10:08:00] [Server]     at java.util.regex.Matcher.appendReplacement(Matcher.java:997) ~[?:?]
    [12.08 10:08:00] [Server]     at java.util.regex.Matcher.replaceAll(Matcher.java:1181) ~[?:?]
    [12.08 10:08:00] [Server]     at java.lang.String.replaceAll(String.java:2142) ~[?:?]
    [12.08 10:08:00] [Server]     at one.lindegaard.MobHunting.MobHuntingManager.onMobDeath(MobHuntingManager.java:1674) ~[MobHunting-8.0.5-SNAPSHOT.jar:?]
    [12.08 10:08:00] [Server]     at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:37) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:624) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:858) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at net.minecraft.world.entity.LivingEntity.dropAllDeathLoot(LivingEntity.java:1711) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.world.entity.LivingEntity.die(LivingEntity.java:1628) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.world.entity.LivingEntity.hurt(LivingEntity.java:1456) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.world.entity.player.Player.attack(Player.java:1256) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.server.level.ServerPlayer.attack(ServerPlayer.java:2007) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.server.network.ServerGamePacketListenerImpl$5.onAttack(ServerGamePacketListenerImpl.java:2400) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.network.protocol.game.ServerboundInteractPacket$1.dispatch(ServerboundInteractPacket.java:24) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.network.protocol.game.ServerboundInteractPacket.dispatch(ServerboundInteractPacket.java:80) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.server.network.ServerGamePacketListenerImpl.handleInteract(ServerGamePacketListenerImpl.java:2327) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.network.protocol.game.ServerboundInteractPacket.handle(ServerboundInteractPacket.java:67) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.network.protocol.game.ServerboundInteractPacket.handle(ServerboundInteractPacket.java:12) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:36) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.server.TickTask.run(TickTask.java:18) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:149) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1348) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at net.minecraft.server.MinecraftServer.shouldRun(MinecraftServer.java:190) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:122) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1327) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1320) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:132) ~[app:?]
    [12.08 10:08:00] [Server]     at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1281) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1192) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[patched_1.17.1.jar:git-Paper-172]
    [12.08 10:08:00] [Server]     at java.lang.Thread.run(Thread.java:831) [?:?]
    Also got this error whenever I kill a mob.

    And can't get it to work. I've got latest Vault so that's not the problem.
    I've done everything now and also added messages.
    I don't know what to do anymore.
     
    #4233 ThaaatName, Aug 12, 2021
    Last edited: Aug 12, 2021
  11. SlimeDog

    Moderator Patron

    Suggestion 1: Try MobHunting with the default config.yml. Does that fail?
    If so, there is some other issue: Version compatibility? Corrupted files?
    If not, what is different in your config.yml?​

    Suggestion 2: Open a ticket with a lot more information that you have given here. In addition to the stack traces, versions of everything, configuration files, etc.
     
    #4234 SlimeDog, Aug 12, 2021
    Last edited: Aug 12, 2021
  12. Check if your InfernalMob plugin is the newest and secondly you have made an error in your config.
     
  13. Installed Infernal Mobs 6.4, not working properly
     
  14. reading this page here, knowing that you are working on snapshot, is it wise to point this out to you?
    Code (Text):
    [18:52:28 WARN]: [MobHunting] Task #694682 for MobHunting v8.0.4 generated an exception
    java.lang.NullPointerException: Cannot invoke "io.chazza.advancementapi.AdvancementManager.updatePlayerAdvancements(org.bukkit.entity.Player)" because the return value of "one.lindegaard.MobHunting.MobHunting.getAdvancementManager()" is null
            at one.lindegaard.MobHunting.achievements.AchievementManager$3.onCompleted(AchievementManager.java:664) ~[MobHunting-8.0.4.jar:?]
            at one.lindegaard.MobHunting.achievements.AchievementManager$3.onCompleted(AchievementManager.java:602) ~[MobHunting-8.0.4.jar:?]
            at one.lindegaard.MobHunting.storage.DataStoreManager$CallbackCaller.run(DataStoreManager.java:270) ~[MobHunting-8.0.4.jar:?]
            at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Tuinity-"4c31ea1"]
            at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[patched_1.17.1.jar:git-Tuinity-"4c31ea1"]
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1550) ~[patched_1.17.1.jar:git-Tuinity-"4c31ea1"]
            at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:480) ~[patched_1.17.1.jar:git-Tuinity-"4c31ea1"]
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1465) ~[patched_1.17.1.jar:git-Tuinity-"4c31ea1"]
            at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1261) ~[patched_1.17.1.jar:git-Tuinity-"4c31ea1"]
            at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[patched_1.17.1.jar:git-Tuinity-"4c31ea1"]
            at java.lang.Thread.run(Thread.java:831) [?:?]
    Or is it better to wait for next release?
     
    • Like Like x 1
  15. Can i use PlaceholderAPI in the messages file?
     
  16. The plugin does not create tables in MySQL.

    T
    he description has the following line:
    • NOTE: MobHunting does not create the database in the case of MySQL, you will need to do this yourself.
    What is that supposed to mean? I created a database, but the plugin does not create tables there.




    [19:31:32] [Server thread/INFO]: Starting minecraft server version 1.17.1
    [19:31:32] [Server thread/INFO]: Loading properties
    [19:31:32] [Server thread/INFO]: This server is running Purpur version git-Purpur-1397 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) >
    [19:31:32] [Server thread/INFO]: Server Ping Player Sample Count: 12
    ....
    [MobHunting] Enabling MobHunting v8.0.4
    [19:31:51] [Server thread/INFO]: [MobHunting] Your config version is 1
    [19:31:51] [Server thread/INFO]: [MobHunting] Existing config.yml loaded.
    [19:31:51] [Server thread/INFO]: [MobHunting] Config.yml was backed up to plugins/MobHunting/backup/config.yml.bak1
    [19:31:51] [Server thread/INFO]: [BagOfGoldCore] BagOfGold is not installed on this server
    [19:31:51] [Server thread/INFO]: [BagOfGoldCore] Enabling compatibility with MobHunting (8.0.4)
    [19:31:51] [Server thread/ERROR]: (com.mysql.jdbc.Driver:43) Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com>
    [19:31:51] [Server thread/ERROR]: Error occurred while enabling MobHunting v8.0.4 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/mysql/jdbc/jdbc2/optional/MysqlDataSource
    at one.lindegaard.Core.storage.MySQLDataStore.setupConnection(MySQLDataStore.java:35) ~[MobHunting-8.0.4.jar:?]
    at one.lindegaard.Core.storage.DatabaseDataStore.initialize(DatabaseDataStore.java:89) ~[MobHunting-8.0.4.jar:?]
    at one.lindegaard.Core.Core.<init>(Core.java:65) ~[MobHunting-8.0.4.jar:?]
    at one.lindegaard.MobHunting.MobHunting.onEnable(MobHunting.java:145) ~[MobHunting-8.0.4.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[mainsrv.jar:git-Purpur-1397]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[mainsrv.jar:git-Purpur-1397]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[mainsrv.jar:git-Purpur-1397]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:535) ~[mainsrv.jar:git-Purpur-1397]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:449) ~[mainsrv.jar:git-Purpur-1397]
    at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:727) ~[mainsrv.jar:git-Purpur-1397]
    at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:318) ~[mainsrv.jar:git-Purpur-1397]
    at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1216) ~[mainsrv.jar:git-Purpur-1397]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321) ~[mainsrv.jar:git-Purpur-1397]
    at java.lang.Thread.run(Thread.java:833) [?:?]
    Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
    at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:148) ~[mainsrv.jar:git-Purpur-1397]
    at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:105) ~[mainsrv.jar:git-Purpur-1397]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
    ... 14 more
    [19:31:51] [Server thread/INFO]: [MobHunting] Disabling MobHunting v8.0.4
     
  17. SlimeDog

    Moderator Patron

    Here is the link from the Overview page with the instructions:
    • MySQL support is optional