[RPG/FUN] PvPReward v1.1 - Killers steal money from their victims [953]

Discussion in 'Inactive/Unsupported Plugins' started by Codisimus, Mar 31, 2011.

  1. Offline

    Codisimus

    This page will no longer be updated. Please follow this project at the Bukkit Dev Page

    PvPReward - Killers steal money from their victims:
    Version: 1.1 (7/16/2011)
    Supports iConomy, BOSEconomy, Essentials, Permissions
    Download Page

    This plugin adds to PvP, in addition to any items that may be dropped, players also steal money from the players they kill. The amount stolen is configurable but is defaulted as follows. (Other variations explained below)

    This plugin does more than just add to PvP, it has many other features for when a player dies of natural causes.

    [​IMG]
    Description:
    Show Spoiler

    Scene01:
    Bob and Jacob have done nothing, all stats are base:
    KARMA POINTS: 0
    DROP PERCENT: 10%
    500 COINS IN ACCOUNT

    Scene02:
    Bob attacks and kills Jacbob, this will do the following things:

    - Bob will gain 2 karma points
    - Jacob will lose 1 karma point ( if he is at 0, it will stay at 0 )
    - Bob's chance for drop of gold will be increased by a 2% modifier if his karma is less than 50
    - If the chance for drop of coins from Jacob ( the killed ) is a success, a random value ( default range of 0%-5% ) will be taken from Jacob's bank account

    Scene03:
    Bob has been bad, and has killed lots of people, he kills Jacob again, the following things occur.

    - Bob will gain 2 karma points putting him over the 50 karma making him an outlaw
    - Jacob will lose 1 karma point ( cannot go below 0 )
    - Bob's chance for drop of gold will be increased to 100% since he is considered an ( outlaw ) and still gains +2 karma
    - If the chance for drop of coins from Jacob ( the killed ) is a success, a random value (default range of 0%-5% ) will be taken from Jacob's bank account

    Scene04:
    Jacob kills bob after bob has 52 karma, the following occurs:

    - Bob will lose 1 point of karma taking him down to 51
    - Bob is still an outlaw so he has 100% chance of drop of gold/coins
    - Jacob WILL NOT earn karma points because he killed an outlaw

    Show Spoiler

    For example: If the modifier is set to 20, whenever an outlaw kills a non-outlaw, he gets 20% more coin on top of the rewards he already would have gotten (if he successfully gets the drops in the first place). Likewise, if the modifier was set to 150, he'd get 150% more coin.

    Now, more in-depth and complex mode: The modifier increases after certain karma thresholds. For example: You have set your options in the config file as follow: karmaThreshold: 10, outlawModifier: 2, modifierMax: 50

    With this, every 10 karma after 50 (60, 70, 80, etc.) will grant the outlaw a 2% bonus to all drops stolen. After it reaches 50% extra drops stolen, it stops increasing (as based on the modifierMax variable). It seems complex, and it's probably not for everyone, but it'd be cool in my opinion.

    (All of that is amount of coin stolen, not the rate at which they drop them, to make it clear!)

    Config Settings:
    Show Spoiler

    RewardType may be any of the following:
    • Karma
    • FlatRate
    • Range
    • Percent
    • PercentRange
    • PercentKDR
    All other settings depend on what the reward type is set to.
    Karma:
    This type has the most features, It is explained above^, the settings are as follows:
    • Percent - The base percentage for calculating whether there will be a drop
    • Amount - The amount of Karma needed to be considered an Outlaw
    • High - The maximum percentage that could be taken from a killed players account
    • Low - The minimum percentage that could be taken from a killed players account
    • OutlawModifier - Outlaws steal an additional x%
    • KarmaThreshold - Increase OutlawModifier every x kills
    • ModifierMax - OutlawModifier will not go beyond x
    • Last three are further explained above
    FlatRate:
    The Killer will always steal a specific amount from the killed, the settings are as follows:
    • Amount - The amount of money that will be stolen upon each murder
    • All other settings don't matter
    Range:
    The Killer will steal an amount of money within a given range, the settings are as follows:
    • High - The maximum amount that could be taken from a killed players account
    • Low - The minimum amount that could be taken from a killed players account
    • All other settings don't matter
    Percent:
    The Killer will steal a certain percent of the killed players total balance, the settings are as follows:
    • Percent - The percent of money that will be taken from a killed player account
    • All other settings don't matter
    PercentRange:
    The Killer will steal a percent of money within a given range, the settings are as follows:
    • High - The maximum percent that could be taken from a killed players account
    • Low - The minimum percent that could be taken from a killed players account
    • All other settings don't matter
    PercentKDR:
    The Killer will steal an percent of money based on the two players KDRs. You receive a higher percent from players with a higher KDR (formula is killedKDR/killerKDR). This percent is taken from the killed players total balance. No settings are used.

    Features:
    • Configure how much money people get
    • Several reward methods/algorithms
    • Option to lose money upon death, whether PvP or not
    • Option of having tombstones instead of players dropping items
    • KDR Leaderboard
    • Configurable combat time
    • Optional penalties for logging or teleporting while in combat
    • Fully customizable messages
    • MultiWorld support
    • Uses iConomy, BOSEconomy or Essentials for money
    • Restrict use with Permissions
    • Included in CraftBukkitUpToDate for easy updating (make sure you come check the changelog if somthing is not working right)
    Commands:
    • /pvp kdr - Display total kills and deaths
    • /pvp karma - Display current Karma level and Karma level to be an Outlaw
    • /pvp outlaws - List current Outlaws
    • /pvp kdr - Display total kills and deaths
    • /pvp rank - List current rank
    • /pvp top - List top 5 KDRs
    Permissions:
    • pvpreward.getreward - no reward if killer does not have this node
    • pvpreward.givereward - no reward if killed does not have this node
    • pvpreward.ignoredeathtoll - will not be charged money when dying
    ToDo:
    • Add Leaderboard
    • Add option of changing an Outlaws permission group *Still trying to figure out the Permissions API
    • Add cooldown for Karma
    • Add drop options
    Changelog:
    Old Versions + ChangeLog can be found at Download Page
    Show Spoiler

    Version 1.1 (7/16/2011)
    • Added Permission node for Ignoring DeathToll
    • Fixed kdr values getting reset
    • Fixed errors when Logging in combat
    • Added color support for all customizable messages
    Version 1.0 (6/26/2011)
    • Added config options
    • Penalties are now optional
    • Added a Penalty Message (DenyTeleMessage)
    Version 0.9 (6/26/2011)
    • Improved OP options
    • Updated Economy support
    • Got rid of Karma commands for non Karma users
    • Added grave feature
    • Added Leaderboard
    • Added cooldown for Karma
    Version 0.8.1 (6/13/2011)
    • Fixed PvP registering
    • Fixed money amount messages
    Version 0.8 (6/12/2011)
    • Cleaned up code/fixed errors
    Version 0.7.2 (6/4/2011)
    • Cleaned up errors and added error messages
    Version 0.7.1 (6/3/2011)
    • Various fixes and code cleanup
    Version 0.7 (6/3/2011)
    • Added Essentials support
    • Added customization options
    • Added option of losing money open death
    • Changed ModifierMax to support negative values
    • Added configurable combat time
    • Added penalty for logging or teleporting
    Version 0.6 (5/4/2011)
    • Updated to iConomy 5
    • Updated to build 740
    • Few various fixes
    Version 0.5 (4/15/2011)
    • Improved Karma system
    • Fixed percent of steal
    • Added /pvp commands
    • Added [Outlaw] tag
    Version 0.4 (4/4/2011)
    • New karma based reward system (set as default)
    • Added Permissions support
    Version 0.3 (3/31/2011)
    • Initial Release
     
    Joh, kahlilnc and Mitsugaru like this.
  2. Offline

    Sergeant1337

    Yes :)
    Thats all I want :D So you steal money from another person :)

    Nothing else, just the stealing part ^^

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

    slimpyman

    dude this is an awesome sounding plugin. i remember playing lineage 2... haha when someone went "red" everyone flocked to them LOL. i hope this will work for 1.8 and 1.9 whenever bukkit is compatible. ill definitely donate once i get my server up and running!
     
  4. Offline

    Bjourk

    Looking forward to the update!
     
  5. Offline

    wachnlurn

    any progress, my users are complaining enemies can teleport while they should be in combat. This is because i havnt enabled this plugin. Is it still usable?
     
  6. Offline

    Codisimus

    I added new features to it and fixed the graves system yesterday, now that Bukkit is updated I'll be testing everything and updating all my plugins within the next 48 hours (providing there are no major issues).
     
  7. Offline

    wachnlurn

    is there a dev build we can run?
     
  8. Offline

    Codisimus

  9. Offline

    wachnlurn

    well, i use factions and it just becomes a mess with the gravestones so i probably wont use that part anyways. with people not being able to break signs in territory if they are not in the faction.
     
  10. Offline

    Codisimus

    You don't have to break it... just click it. Unless there's a bug or sumthing
     
  11. Offline

    Danton1983

  12. Offline

    BlancoLanda

    Code:
    19:33:01 [SEVERE] Error occurred while enabling PvPReward v1.1 (Is it up to dat
    ?): com/nijikokun/register/payment/Methods
    java.lang.NoClassDefFoundError: com/nijikokun/register/payment/Methods
            at PvPReward.PluginListener.<init>(PluginListener.java:16)
            at PvPReward.PvPReward.onEnable(PvPReward.java:51)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoade
    .java:920)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManag
    r.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:15
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.register.payment.Met
    ods
            at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader
    java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader
    java:24)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
            ... 12 more
    @Codisimus I get that error executing it in CB 1185 and iConomy 6, I can't make it work here right? This plugin seems cool... If someone knows how to fix this or know any other plugin like this... tell me please.
    Thank you.
     
  13. Offline

    Zaros

    Dear god... that page burns the crap out of my eyes...
     
  14. Offline

    Codisimus

  15. Offline

    BlancoLanda

    Thank you very much @Codisimus!
     
  16. Offline

    Zaros

    The background, not the code :confused:
    At 2:30 in the morning, the details in that page are like looking into a flood light o.e;
     
  17. Offline

    Codisimus

    oh lol, well the code could proly burn some eyes too.
     
  18. Offline

    Zaros

    I'm sure it could :cool:

    While I have your attention:

    I love your plugins! Especially this and TurnStile.
     
  19. Offline

    Codisimus

    why thank you :) It looks like are the bugs are nearly gone and I can start releasing stable builds tomorrow.
     
  20. Offline

    Zaros

    Sweet, I'm releasing my server next Tuesday so thats really helpful ;P

    By the way...
    This is iConomy 6 compatible right?

    Code:
    13:56:19 [SEVERE] Could not pass event PLUGIN_ENABLE to PvPReward
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at com.nijikokun.register.payment.methods.iCo4.isCompatible(iCo4.java:54)
            at com.nijikokun.register.payment.Methods.createMethod(Methods.java:55)
            at com.nijikokun.register.payment.Methods.setMethod(Methods.java:87)
            at PvPReward.PluginListener.onPluginEnable(PluginListener.java:32)
            at org.bukkit.plugin.java.JavaPluginLoader$46.execute(JavaPluginLoader.java:562)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:927)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
     
  21. Offline

    BlancoLanda

    @Codisimus

    Code:
    20:17:33 [SEVERE] Could not pass event ENTITY_DEATH to PvPReward
    java.lang.NullPointerException
            at PvPReward.Register.getPercentMoney(Register.java:24)
            at PvPReward.PvPRewardEntityListener.dropMoney(PvPRewardEntityListener.
    ava:79)
            at PvPReward.PvPRewardEntityListener.onEntityDeath(PvPRewardEntityListe
    er.java:62)
            at org.bukkit.plugin.java.JavaPluginLoader$62.execute(JavaPluginLoader.
    ava:677)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.ja
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.
    ava:338)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerDeathEvent(
    raftEventFactory.java:300)
            at net.minecraft.server.EntityPlayer.die(EntityPlayer.java:158)
            at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:469
    
            at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:583)
            at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:200
    
            at net.minecraft.server.EntityHuman.d(EntityHuman.java:720)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:915)
            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:92)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    This happens to me now :(

    These are my plugins currently:

    Code:
    20:19:55 [INFO] Plugins: AuthMe, AutoMessage, AutoSave, Essentials, EssentialsSp
    awn, iConomy, PermissionsEx, PvPReward, Residence, Safe Creeper, Vault, WorldEdi
    t, ChatManager, ChestShop, dynmap, LWC, WorldBorder
     
  22. Offline

    Codisimus

    @Zaros
    like I said, only the dev build is (or perhaps you have an older dev build, just redownload it)
    Also... try to setting 'Economy=auto' in the config. As long as you don't have BOSEconomy too, it should work

    @BlancoLanda
    can I see your config? and it is linking to your economy plugin correct?
     
  23. Offline

    BlancoLanda

    @Codisimus

    PHP:
    ###Config file for PvPReward###
    ###Plugin made by Codisimus###
     
    ###General settings###

    ##Supported Economy plugins:
    ##BOSEconomy, iConomy, Essentials, MultiCurrency
    ##If set to auto, PvPReward will use the first Economy Plugin found
    ##If set to none, PvPReward will not link to any Economy Plugin
    Economy=iConomy

    ##If set to true, there will be no restrictions
    UseOP=false

    ##If set to true, money amount will not use decimals
    WholeNumbers=true
     
    ###Death settings (includes PvP and non-PvP)###

    ##Players will lose money everytime they die
    ##DeathTollType can be set to Percent or FlatRate
    DeathTollType=Percent
    DeathToll
    =20

    ##Graves contain all items a Player dropped when they died
    ##If a Player clicks on the Sign before it vanishes they retrieve their items
    ##**Note Graves is still a beta feature and does not fully work properly
    ##Graves will only be used if DigGraves is set to true
    DigGraves=false
    ##The amount of time before a grave disappears (in seconds)
    GraveTime=300
     
    ###Message settings###

    ##These are the messages that players will see while using PvPReward
    ##Type \! instead of ! in order to use an exclamation point (ex. hi\!)
    ##Use & to specify colors for messages (ex. &3hi&a.)
    KilledMessage=Te han robado <amountal morir. \!
    KillerMessage=Has robado <amountde <killed>
    KilledNotEnoughMoney=<killerno te quitó nada de dinero porque no llevabas nada encima\!
    KillerNotEnoughMoney=It was not worth stealing from <killed>.
    OutlawBroadcast=<killeris now an outlaw\!
    NoLongerOutlawBroadcast=<killedis no longer an outlaw\!
    KarmaDecreased=Karma decreased to <karma> for being killed\!
    KarmaIncreased=Karma increased to <karma> for killing <killed>\!
    KarmaNoChange=No change in Karma because <killedwas an outlaw\!
    DeathTollMessage=Has perdido <amountpor morir\!
    GraveRobMessage=Has recuperado tus objetos del suelo
    DenyTeleMessage
    =No puedes teletransportarte mientras estás en batalla!\!

    OutlawTag=[&9Outlaw&f] <name>
    KarmaName=karma
    OutlawName
    =outlaw
     
    ###Penalty Settings###

    ##This is the amount of time that you will stay in combat (in seconds)
    CombatTime=1
    ##If set to true then Players who log-off while in combat will still lose money
    ##Set to false if running CombatTag (CombatTag checks for client crashes)
    PenalizeLoggers=true
    ##If set to true then a Player will not be able to teleport while in combat
    DenyTele=true
    ##This is how many half hearts the Player will lose after trying to teleport
    TelePenalty=6

    ###Reward Settings###

    ##List of possible values for RewardType
    ##Karma, FlatRate, Range, Percent, PercentRange, PercentKDR
    RewardType=Percent

    ##The following settings only matter if the RewardType is Karma
    ##Increase OutlawModifier every x kills
    KarmaThreshold=10
    ##Outlaws steal an additional x% (can be set to a negative number)
    OutlawModifier=20
    ##OutlawModifier will not go beyond x (should be negative if above is negative)
    ModifierMax=200
    ##Every x minutes, each online player will lose one Karma Point
    ##If set to 0 then there will be no Karma cooldown
    CooldownTime=0
    ##If set to true, all Karma values will be displayed as negative
    ##All numbers in config should still be positive numbers (unless stated otherwise)
    Negative=false

    ##The following settings depend on the RewardType(more info below)
    High=5
    Low
    =0
    Percent
    =50
    Amount
    =15
     
    ##Karma:

    #Percent - The base percentage for calculating whether there will be a drop
    #Amount - The amount of Karma needed to be considered an Outlaw
    #High - The maximum percentage that could be taken from a killed players account
    #Low - The minimum percentage that could be taken from a killed players account
     
    ##FlatRate:
    #The Killer will always steal a specific amount from the killed

    #Amount - The amount of money that will be stolen upon each murder
    #All other settings don't matter
     
    ##Range:
    #The Killer will steal an amount of money within a given range

    #High - The maximum amount that could be taken from a killed players account
    #Low - The minimum amount that could be taken from a killed players account
    #All other settings don't matter
     
    ##Percent:
    #The Killer will steal a certain percent of the killed players total balance

    #Percent - The percent of money that will be taken from a killed player account
    #All other settings don't matter
     
    ##PercentRange:
    #The Killer will steal a percent of money within a given range

    #High - The maximum percent that could be taken from a killed players account
    #Low - The minimum percent that could be taken from a killed players account
    #All other settings don't matter
     
    ##PercentKDR:

    #The Killer will steal a percent of money based on the two players KDRs. You receive a higher percent from players with a #higher KDR (formula is killedKDR/killerKDR). This percent is taken from the killed players total balance. No settings are used.
     
  24. Offline

    Zaros

    @Codisimus

    Code:
    14:53:36 [INFO] PvPReward 1.1 is enabled!
    14:53:36 [INFO] [PvPReward] Successfully linked with Permissions!
    
    Thanks!

    23:57:49 [SEVERE] Could not pass event ENTITY_DEATH to PvPReward
    java.lang.NullPointerException
    at PvPReward.Register.getPercentMoney(Register.java:24)
    at PvPReward.PvPRewardEntityListener.dropMoney(PvPRewardEntityListener.java:79)
    at PvPReward.PvPRewardEntityListener.onEntityDeath(PvPRewardEntityListener.java:62)
    at org.bukkit.plugin.java.JavaPluginLoader$62.execute(JavaPluginLoader.java:677)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:300)
    at net.minecraft.server.EntityPlayer.die(EntityPlayer.java:158)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:469)
    at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:583)
    at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:200)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:720)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:915)
    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:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

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

    Codisimus

    @Zaros
    @BlancoLanda
    Looks like you two have the same error.
    If you have Economy set to auto then make sure you see "PvPReward successfully linked with iConomy"
     
  26. Offline

    Zaros

    2 posts above yours I quoted that message to show you it was working. Yes, its running on auto and it displays that message every time on start.

    Btw, I'm using the one off the website with 1185, is that not the dev version?
     
  27. Offline

    Codisimus

    In the message I see linked with Permissions but not with iConomy. and the dev build is not the one in the original post. its this one http://dl.dropbox.com/u/23866327/Plugins/Test Jars/PvPReward.jar

    The creater of Register, which allows me to link to different Economies is in the process of changing how it should be implemented so I am kind of waiting to see how it plays out b4 I can get this completely working.
     
  28. Offline

    Zaros

    Ah... Could only see '14:53:36 [INFO] [PvPReward] Successfully linked wit' on my iPod...
    Crud... I have to have this plugin for release, its unreplacable!
     
  29. Offline

    Codisimus

    Crud... I have to have this plugin for release, its unreplacable![/quote]
    Don't worry... I have 6 hours of classes then my weekend starts and I can get these working.
     
  30. Offline

    BlancoLanda

    @Codisimus With that build, when any player kill other player it appears like "You took 0 coins of the player", ALWAYS 0 coins... so my plugin is not working. Probably I'm not configuring it rightly? It is successfull linked with iconomy (with "auto" etc., so... i don't understand. I don't want any karma system, I just wanted to enable de reward percent system. This is my config:

    Code:
    ###Config file for PvPReward###
    ###Plugin made by Codisimus###
     
    ###General settings###
    
    ##Supported Economy plugins:
    ##BOSEconomy, iConomy, Essentials, MultiCurrency
    ##If set to auto, PvPReward will use the first Economy Plugin found
    ##If set to none, PvPReward will not link to any Economy Plugin
    Economy=auto
    
    ##If set to true, there will be no restrictions
    UseOP=false
    
    ##If set to true, money amount will not use decimals
    WholeNumbers=false
     
    ###Death settings (includes PvP and non-PvP)###
    
    ##Players will lose money everytime they die
    ##DeathTollType can be set to Percent or FlatRate
    DeathTollType=FlatRate
    DeathToll=0
    
    ##Graves contain all items a Player dropped when they died
    ##If a Player clicks on the Sign before it vanishes they retrieve their items
    ##**Note Graves is still a beta feature and does not fully work properly
    ##Graves will only be used if DigGraves is set to true
    DigGraves=false
    ##The amount of time before a grave disappears (in seconds)
    GraveTime=300
     
    ###Message settings###
    
    ##These are the messages that players will see while using PvPReward
    ##Type \! instead of ! in order to use an exclamation point (ex. hi\!)
    ##Use & to specify colors for messages (ex. &3hi&a.)
    KilledMessage=Te han robado <amount> al morir. \!
    KillerMessage=Has robado <amount> de <killed>
    KilledNotEnoughMoney=<killer> no te quitó nada de dinero porque no llevabas nada encima\!
    KillerNotEnoughMoney=It was not worth stealing from <killed>.
    OutlawBroadcast=<killer> is now an outlaw\!
    NoLongerOutlawBroadcast=<killed> is no longer an outlaw\!
    KarmaDecreased=Karma decreased to <karma> for being killed\!
    KarmaIncreased=Karma increased to <karma> for killing <killed>\!
    KarmaNoChange=No change in Karma because <killed> was an outlaw\!
    DeathTollMessage=Has perdido <amount> por morir\!
    GraveRobMessage=Has recuperado tus objetos del suelo
    DenyTeleMessage=No puedes teletransportarte mientras estás en batalla!\!
    
    OutlawTag=[&9Outlaw&f] <name>
    KarmaName=karma
    OutlawName=outlaw
     
    ###Penalty Settings###
    
    ##This is the amount of time that you will stay in combat (in seconds)
    CombatTime=1
    ##If set to true then Players who log-off while in combat will still lose money
    ##Set to false if running CombatTag (CombatTag checks for client crashes)
    PenalizeLoggers=true
    ##If set to true then a Player will not be able to teleport while in combat
    DenyTele=true
    ##This is how many half hearts the Player will lose after trying to teleport
    TelePenalty=6
    
    ###Reward Settings###
    
    ##List of possible values for RewardType
    ##Karma, FlatRate, Range, Percent, PercentRange, PercentKDR
    RewardType=Percent
    
    ##The following settings only matter if the RewardType is Karma
    ##Increase OutlawModifier every x kills
    KarmaThreshold=10
    ##Outlaws steal an additional x% (can be set to a negative number)
    OutlawModifier=20
    ##OutlawModifier will not go beyond x (should be negative if above is negative)
    ModifierMax=200
    ##Every x minutes, each online player will lose one Karma Point
    ##If set to 0 then there will be no Karma cooldown
    CooldownTime=0
    ##If set to true, all Karma values will be displayed as negative
    ##All numbers in config should still be positive numbers (unless stated otherwise)
    Negative=false
    
    ##The following settings depend on the RewardType(more info below)
    High=5
    Low=0
    Percent=10
    Amount=15
     
    ##Karma:
    
    #Percent - The base percentage for calculating whether there will be a drop
    #Amount - The amount of Karma needed to be considered an Outlaw
    #High - The maximum percentage that could be taken from a killed players account
    #Low - The minimum percentage that could be taken from a killed players account
     
    ##FlatRate:
    #The Killer will always steal a specific amount from the killed
    
    #Amount - The amount of money that will be stolen upon each murder
    #All other settings don't matter
     
    ##Range:
    #The Killer will steal an amount of money within a given range
    
    #High - The maximum amount that could be taken from a killed players account
    #Low - The minimum amount that could be taken from a killed players account
    #All other settings don't matter
     
    ##Percent:
    #The Killer will steal a certain percent of the killed players total balance
    
    #Percent - The percent of money that will be taken from a killed player account
    #All other settings don't matter
     
    ##PercentRange:
    #The Killer will steal a percent of money within a given range
    
    #High - The maximum percent that could be taken from a killed players account
    #Low - The minimum percent that could be taken from a killed players account
    #All other settings don't matter
     
    ##PercentKDR:
    
    #The Killer will steal a percent of money based on the two players KDRs. You receive a higher percent from players with a #higher KDR (formula is killedKDR/killerKDR). This percent is taken from the killed players total balance. No settings are used.
     
  31. Offline

    Zaros

    I'll love you long time, maybe even to the point of... ya know.... donation!

    Regardless, please save me from my users!!! </3

    Edit: I'm sure you know of this issue already:

    Code:
    01:57:36 [SEVERE] Could not pass event PLUGIN_ENABLE to PvPReward[/COLOR][/SIZE]
    [COLOR=#000000][SIZE=2]java.lang.IncompatibleClassChangeError: Expecting non-static method com.nijikokun.register.payment.Methods.hasMethod()Z[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at PvPReward.PluginListener.onPluginEnable(PluginListener.java:30)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at org.bukkit.plugin.java.JavaPluginLoader$46.execute(JavaPluginLoader.java:562)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:927)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)[/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2]

    That happens when I run register.[/CODE][/COLOR][/SIZE]
     

Share This Page