I have stopped development of this project in favor of WalletDrop.
Simple plugin that allows you to collect configurable amount of money by killing mobs. Requires a properly registered economy plugin… This should be compatible with most Mod entities as well. Configuration file is pretty self explanatory.
No commands as of yet
Only permission needed to use this is BloodMoney.collect
Creating plugins for Sponge takes time and effort. If you enjoy the hard work I’ve put into to this please feel free to get my a cup of coffee. It is much appreciated.
It would be cool if you could set it up so one group could get like $20 from killing a creeper and another group could get $40 from the same thing.T his is a very nice plugin, though, and is the first of it’s kind on here; Well done!
[11:37:48] [Server thread/INFO] [FML/]: [Server thread] Server side modded connection established
[11:37:54] [Server thread/INFO] [io.github.hsyyid.essentialcmds/]: [Meremoth] executed command fly
[11:37:55] [Server thread/DEBUG] [CreeperMend/]: Cause[{Name=Source, Object={SpongeBlockSnapshot{worldUniqueId=d52e7440-4680-4fe3-8618-0c40f0da339a, position=(497, 11, 441), blockState=minecraft:redstone_ore, extendedState=minecraft:redstone_ore}}}]
[11:37:58] [Server thread/INFO] [io.github.hsyyid.essentialcmds/]: [Meremoth] executed command spawn
[11:38:29] [Server thread/ERROR] [Sponge/]: Could not pass LivingDeathEvent to org.spongepowered.mod.plugin.SpongeModPluginContainer@3f25ee6a
java.lang.ClassCastException: net.minecraft.entity.monster.EntityGuardian cannot be cast to org.spongepowered.api.entity.living.player.Player
at com.gmail.trentech.BloodMoney.EventHandler.onDestructEntityEvent(EventHandler.java:87) ~[EventHandler.class:?]
at org.spongepowered.common.event.listener.DeathListener_EventHandler_onDestructEntityEvent73.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:86) ~[RegisteredListener.class:1.8.9-1808-4.1.0-BETA-1228]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:239) [SpongeModEventManager.class:1.8.9-1808-4.1.0-BETA-1228]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:199) [SpongeModEventManager.class:1.8.9-1808-4.1.0-BETA-1228]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:70) [EventBus.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:58) [EventBus.class:?]
at net.minecraftforge.common.ForgeHooks.onLivingDeath(ForgeHooks.java:475) [ForgeHooks.class:?]
at net.minecraft.entity.EntityLivingBase.func_70645_a(EntityLivingBase.java:890) [pr.class:?]
at net.minecraft.entity.EntityLivingBase.func_70097_a(EntityLivingBase.java:308) [pr.class:?]
at net.minecraft.entity.monster.EntityGuardian$AIGuardianAttack.func_75246_d(SourceFile:577) [vt$a.class:?]
at net.minecraft.entity.ai.EntityAITasks.func_75774_a(SourceFile:102) [re.class:?]
at net.minecraft.entity.EntityLiving.func_70626_be(EntityLiving.java:559) [ps.class:?]
at net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:1775) [pr.class:?]
at net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:382) [ps.class:?]
at net.minecraft.entity.monster.EntityMob.func_70636_d(SourceFile:27) [vv.class:?]
at net.minecraft.entity.monster.EntityGuardian.func_70636_d(SourceFile:362) [vt.class:?]
at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1614) [pr.class:?]
at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:228) [ps.class:?]
at net.minecraft.entity.monster.EntityMob.func_70071_h_(SourceFile:32) [vv.class:?]
at net.minecraft.world.World.redirect$onCallEntityUpdate$0(World.java:286) [adm.class:?]
at net.minecraft.world.World.func_72866_a(World.java:1862) [adm.class:?]
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:700) [le.class:?]
at net.minecraft.world.World.func_72870_g(World.java:1831) [adm.class:?]
at net.minecraft.world.World.func_72939_s(World.java:1663) [adm.class:?]
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:545) [le.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:701) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:344) [ko.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:605) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_77]
[11:38:33] [Server thread/DEBUG] [FML/]: Gathering id map for writing to world save world
[11:38:33] [Server thread/ERROR] [Sponge/]: Could not pass LivingDeathEvent to org.spongepowered.mod.plugin.SpongeModPluginContainer@3f25ee6a
java.lang.ClassCastException: net.minecraft.entity.monster.EntityGuardian cannot be cast to org.spongepowered.api.entity.living.player.Player
at com.gmail.trentech.BloodMoney.EventHandler.onDestructEntityEvent(EventHandler.java:87) ~[EventHandler.class:?]
at org.spongepowered.common.event.listener.DeathListener_EventHandler_onDestructEntityEvent73.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:86) ~[RegisteredListener.class:1.8.9-1808-4.1.0-BETA-1228]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:239) [SpongeModEventManager.class:1.8.9-1808-4.1.0-BETA-1228]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:199) [SpongeModEventManager.class:1.8.9-1808-4.1.0-BETA-1228]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:70) [EventBus.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:58) [EventBus.class:?]
at net.minecraftforge.common.ForgeHooks.onLivingDeath(ForgeHooks.java:475) [ForgeHooks.class:?]
at net.minecraft.entity.EntityLivingBase.func_70645_a(EntityLivingBase.java:890) [pr.class:?]
at net.minecraft.entity.EntityLivingBase.func_70097_a(EntityLivingBase.java:308) [pr.class:?]
at net.minecraft.entity.monster.EntityGuardian$AIGuardianAttack.func_75246_d(SourceFile:577) [vt$a.class:?]
at net.minecraft.entity.ai.EntityAITasks.func_75774_a(SourceFile:102) [re.class:?]
at net.minecraft.entity.EntityLiving.func_70626_be(EntityLiving.java:559) [ps.class:?]
at net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:1775) [pr.class:?]
at net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:382) [ps.class:?]
at net.minecraft.entity.monster.EntityMob.func_70636_d(SourceFile:27) [vv.class:?]
at net.minecraft.entity.monster.EntityGuardian.func_70636_d(SourceFile:362) [vt.class:?]
at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1614) [pr.class:?]
at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:228) [ps.class:?]
at net.minecraft.entity.monster.EntityMob.func_70071_h_(SourceFile:32) [vv.class:?]
at net.minecraft.world.World.redirect$onCallEntityUpdate$0(World.java:286) [adm.class:?]
at net.minecraft.world.World.func_72866_a(World.java:1862) [adm.class:?]
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:700) [le.class:?]
at net.minecraft.world.World.func_72870_g(World.java:1831) [adm.class:?]
at net.minecraft.world.World.func_72939_s(World.java:1663) [adm.class:?]
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:545) [le.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:701) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:344) [ko.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:605) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_77]
[11:38:37] [Server thread/DEBUG] [CreeperMend/]: Cause[{Name=Source, Object={SpongeBlockSnapshot{worldUniqueId=d52e7440-4680-4fe3-8618-0c40f0da339a, position=(322, 12, 158), blockState=minecraft:redstone_ore, extendedState=minecraft:redstone_ore}}}]
[11:38:52] [Server thread/ERROR] [Sponge/]: Could not pass LivingDeathEvent to org.spongepowered.mod.plugin.SpongeModPluginContainer@3f25ee6a
java.lang.ClassCastException: net.minecraft.entity.monster.EntityGuardian cannot be cast to org.spongepowered.api.entity.living.player.Player
at com.gmail.trentech.BloodMoney.EventHandler.onDestructEntityEvent(EventHandler.java:87) ~[EventHandler.class:?]
at org.spongepowered.common.event.listener.DeathListener_EventHandler_onDestructEntityEvent73.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:86) ~[RegisteredListener.class:1.8.9-1808-4.1.0-BETA-1228]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:239) [SpongeModEventManager.class:1.8.9-1808-4.1.0-BETA-1228]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:199) [SpongeModEventManager.class:1.8.9-1808-4.1.0-BETA-1228]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:70) [EventBus.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:58) [EventBus.class:?]
at net.minecraftforge.common.ForgeHooks.onLivingDeath(ForgeHooks.java:475) [ForgeHooks.class:?]
at net.minecraft.entity.EntityLivingBase.func_70645_a(EntityLivingBase.java:890) [pr.class:?]
at net.minecraft.entity.EntityLivingBase.func_70097_a(EntityLivingBase.java:308) [pr.class:?]
at net.minecraft.entity.monster.EntityGuardian$AIGuardianAttack.func_75246_d(SourceFile:577) [vt$a.class:?]
at net.minecraft.entity.ai.EntityAITasks.func_75774_a(SourceFile:102) [re.class:?]
at net.minecraft.entity.EntityLiving.func_70626_be(EntityLiving.java:559) [ps.class:?]
at net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:1775) [pr.class:?]
at net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:382) [ps.class:?]
at net.minecraft.entity.monster.EntityMob.func_70636_d(SourceFile:27) [vv.class:?]
at net.minecraft.entity.monster.EntityGuardian.func_70636_d(SourceFile:362) [vt.class:?]
at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1614) [pr.class:?]
at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:228) [ps.class:?]
at net.minecraft.entity.monster.EntityMob.func_70071_h_(SourceFile:32) [vv.class:?]
at net.minecraft.world.World.redirect$onCallEntityUpdate$0(World.java:286) [adm.class:?]
at net.minecraft.world.World.func_72866_a(World.java:1862) [adm.class:?]
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:700) [le.class:?]
at net.minecraft.world.World.func_72870_g(World.java:1831) [adm.class:?]
at net.minecraft.world.World.func_72939_s(World.java:1663) [adm.class:?]
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:545) [le.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:701) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:344) [ko.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:605) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_77]
This error isn’t from my plugin. It’s a bit hard to read the way you posted it but it looks like it’s RedProtect, but I also see a reference to EssentialCmds as well. There’s no references to BloodMoney at all
Hi ~
We use your plugin for put some rewards when a player kills monsters, but when we restart the server the reward, we set, are reset.
How should we solve this issue?