Inactive [ECON/FUN] EconomyPunga - Killers steal money from their victims (EssentEco, iCo, BOSE)[1.2.5]

Discussion in 'Inactive/Unsupported Plugins' started by PatrickFreed, Jul 13, 2011.

  1. Offline

    PatrickFreed

    View this thread on BukkitDev!

    Version: v1.3.2 (4/7/12)

    This plugin gives the killer 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.

    Special thanks to:
    - FlingeR (original dev)
    - Fermis (for the halp)
    - krinsdeath (Tons of great tips)
    - Top_Cat (Github and testing :p)

    Features:
    • Fully customizable messages.
    • You can set the amount money extracted from the victim.
      • Static amount
      • Static percentage
      • Random amount
      • Random percentage
    • SuperPerms
    • Support for all major economies.
      • Requires Vault!
    Permissions Nodes:
    • EconomyPunga.use - It's necessary for victim and the killer.
    • EconomyPunga.victim - Necessary if you want to be able to give money
    • EconomyPunga.killer - Necessary if you want to be able to receive money
      • The killer and victim nodes are each half of the 'use' node. If you want the functionality of both, just give the use node.
    Older Changes (open)

    Version 1.2.3
    • Fixed the bug where it would take money from the killer if the victim had negative money.
    Version 1.2.2
    • Fixed the incorrect payment bug (actually this time! lol)
    Version 1.2.1
    • Fixed NPEs
    • Fixed bug where it would pay out incorrectly
    Version 1.2
    • Updated to work with RB 1060
    Version 1.1
    • Added SuperPerms support
    Version 1.0
    • Added support for BOSEconomy, EssentialsEco, and iCo4
    • Fixed a bunch of bugs (Before 1.0, but I thought I'd let you know)
    Version 0.6
    • Added generating config
    • Added new modes (Random amounts, random percentages, and static amounts)
    Version 0.5
    • Fixed the bug where /kill would case errors, possibly crashing the server
    • Fixed the bug where /kill would give money to the last person that killed them
    Version 0.4
    • Updated for Permissions 3 (still works with older ones by TheYeti)
    Version 0.3
    • Updated for 953
    • Updated for iConomy5
    Version 0.2
    • Fixed for CB-617.
    Version 0.1
    • Releasing.
     
    kahlilnc likes this.
  2. Offline

    kahlilnc

    Nice fork :D
     
  3. Offline

    Taemera

    Yes! You can't imagine how long I waited for this plugin to get forked! (Well, you can, but you know what I mean)
    EDIT: Aaand I just realised I stopped using iConomy after the original punga went inactive, I'm using BOSEconomy now. Any chance this plugin will ever support BOSEconomy?
     
  4. Offline

    PatrickFreed

    uuhh, maybe. I'll have to look into it. (I'm new to java :p)

    Updated for Permissions 3.
    Also, can a mod remove that last bullet point at the bottom of the post for me? I can't seem to :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  5. Offline

    Jarvisd

    Nice plugin pat :D
     
  6. Offline

    PatrickFreed

    Added to the To-do

    @Jarvisd

    Thanks noob.
     
  7. Offline

    dzekins

    can you make it so the percentage is random?
     
  8. Offline

    PatrickFreed

    I'm not so sure you'd want that because people could lose all there money after getting PvP'd once, but I'll see what I can do.
     
  9. Offline

    dzekins

    maybe with an limit like it will randomly pick from 5-20%?
     
  10. Offline

    PatrickFreed

    Added to the to-do ;)
     
  11. Offline

    Jarvisd

    Way to be a douche.
     
  12. Offline

    embty

    It generated an empty config.yml for me so i copied it from the example but didnt work for me at all. no massge no loot.
    Thanks alot!
     
  13. Offline

    dzekins

    thank you :)
     
  14. Offline

    PatrickFreed

    Do you have permissions installed?
     
  15. Offline

    embty

    Yes. Added the permission.
     
  16. Offline

    PatrickFreed

    And it still doesn't work?
    Did you add it for the victim and the killer?
     
  17. Offline

    embty

    Yes I added the permission for default group which is anyone on the server. The moment I reloaded the generated config.yml was 0byts and had nothing writtin in it so I thought id copy the example and use it but it didnt work also.
     
  18. Offline

    PatrickFreed

    I take it you aren't getting any errors in the console. I'm going to try to reproduce the problem.
    In the meantime, try deleting your config.yml and re-downloading the jar.
     
  19. Offline

    embty

    Done that like 3 times already :p
    Found this error
    Code:
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
    at me.patrickfreed.iConomyPunga.iConomyPungaEntityListener.onEntityDeath(iConomyPungaEntityListener.java:69)
    at org.bukkit.plugin.java.JavaPluginLoader$56.execute(JavaPluginLoader.java:635)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at net.minecraft.server.EntityPlayer.die(EntityPlayer.java:141)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:391)
    at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:436)
    at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:179)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:561)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:856)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Using essentials regesiterd eco
     
  20. Offline

    PatrickFreed

    @embty
    Oh, this plugin isn't compatible with EssentialsEco yet, sorry. (I'm working on it)
     
  21. Offline

    embty

    Oh crap I thought that was changelog didnt see the TODO my bad sorry :)
     
  22. Offline

    PatrickFreed

    No problem, I'll let you know when it does support it though ;)
     
  23. Offline

    Coolred303

    im ge
    im getting the same problem but with no errors. Is there any reason? Thanks :D
     
  24. Offline

    PatrickFreed

    If you have Permissions installed, you have to give the killer and the victim the node iConomyPunga.use. If not, only OPs will gain and lose money.
    Also, if your config is blank, use the example one above instead.
     
  25. Offline

    PatrickFreed

    Updated to 0.5, major bugfixes
     
  26. Offline

    embty

    Any ETA time on register support? :)
    Thank,
     
  27. Offline

    PatrickFreed

    Could take a little while, maybe a week or so? I hope that's not too long, I'm still getting my java bearings. ;)
     
  28. Offline

    Tyler Ferm

    The random percentage could be added to the config file, so a min and a max pct.
     
  29. Offline

    PatrickFreed

    Yeah, I should release 0.6 today or tomorrow with:
    • Modes (Static, Random and Percentage)
      • Static: Victims lose x amount every time.
      • Random-Percent: A percentage picked at random from user defined limits. (ie Max-Percent:90 Min: 25)
      • Random-Amount: A random amount from user defined limits. (ie Max-amount: 100 Min: 20)
      • Percentage: (Already implemented) A set percentage is taken from the victim
    • Maybe make the jar generate a good config
    • Clean up code (Hopefully :p)
     
  30. Offline

    PatrickFreed

    Turns out, I'm going to have to rewrite much of the code. (It is very messy plus is based around iConomy, not register.)
     
    embty likes this.

Share This Page