EconomyPunga
Version: v1.3.2
This plugin requires vault! You can get it here: dev.bukkit.org/server-mods/Vault
This plugin gives the murderer a part of their victims' money. This amount can be configured from the file config.yml, as well as messages for the murderer and his victim.
Features
Configuration Tutorial
Changelog
Source Code
To Do:
- Add money drops for different deaths
Special thanks to:
- FlingeR (original dev)
- Fermis (for the halp)
- krinsdeath (Tons of great tips)
- Top_Cat (Github and testing )
how do you get money in the first place?
I Would Love To See You Inplument An Option Were The Player Drops All Him Money But The Killer Will Get Only A Certain % Or Amount Out Of It...But The Player Will Still Lose 100% Of There Money
@Switch0r
Right, metrics update. Fixing.
Version 1.3.3 is hanging the server for 20 sec at start.
2012-04-21 08:01:15 [INFO] [EconomyPunga] Enabling EconomyPunga v1.3.2
2012-04-21 08:01:15 [INFO] [EconomyPunga] EconomyPunga v.1.3.2 enabled!
2012-04-21 08:01:15 [INFO] [EconomyPunga] Config loaded successfully!
2012-04-21 08:01:15 [INFO] Connection reset
2012-04-21 08:01:15 [INFO] Connection reset
2012-04-21 08:01:16 [INFO] Connection reset
2012-04-21 08:01:16 [INFO] Connection reset
2012-04-21 08:01:36 [SEVERE] [EconomyPunga]Statistics tracking failure
@lolitsthad
Found the issue, fixing!
RossGosling's comment is correct, and it happens 100% of the time. If a player has taken damage and then falls to his death (even if the falling happens after combat has finished and is not related to it) the player who dies by falling still loses money.
@PatrickFreed
Mine happens only rarely, so it is kind of hard to replicate without watching it for a while. Perhaps you should try it with a few ppl on a server you have ops on and log access to and see if you can get it to happen for you with the version you hold to be working fine.
@ASWeiler
@RossGosling
My versions may have been messed up, I can't see a way either of these could be possible.
When a player1 is hurt by player2 then goes off and plays for a while, if he falls to his death player2 somehow receives money!
@PatrickFreed
That is odd cause that is exactly what I have. 1.3.2-Fixed.
@ASWeiler
What version are you using? 1.3.2 doesn't have this error anymore.
17:20:45 [SEVERE] Could not pass event EntityDamageByEntityEvent to EconomyPunga org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:360) at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:378) at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:608) at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:595) at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:215) at net.minecraft.server.EntityArrow.F_(EntityArrow.java:214) at net.minecraft.server.World.entityJoinedWorld(World.java:1264) at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:106) at net.minecraft.server.World.playerJoinedWorld(World.java:1246) at net.minecraft.server.World.tickEntities(World.java:1153) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:542) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftSkeleton cannot be cast to org.bukkit.entity.Player at me.patrickfreed.EconomyPunga.EconomyPungaEventListener.onEntityDamageByEntity(EconomyPungaEventListener.java:40) at sun.reflect.GeneratedMethodAccessor528.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 16 more
I am gonna test this , i like simple plugins :)
Thanks
Edit: Tested, working very good :)
@RossGosling
I uploaded a new version that gens a config.
@PatrickFreed
so how do we get the config?
EDIT used config guide to make one myself
@RossGosling
@Qiadda
Sorry about that, forgot to package the config with the jar.
@Qiadda
Can I get the rest of the error?
@Qiadda
Mines doing the same and it wont generate a config
thanks :)
if the config file is not present, only!
@Qiadda
@LlmDl
@AuraL17
Fixed!
https://github.com/patrickfreed/EconomyPunga/commit/6890042346c1cfe45df0b7f7804f42e9c14bc2ca https://github.com/patrickfreed/EconomyPunga/commit/101dcd388c9a4a041323d0164054e45f4089d8f7