Per-rank kill payment.

Discussion in 'Archived: Plugin Requests' started by TheSimpZone, Aug 21, 2014.

  1. I would like a plugin that gives players money for killing other players depending on the rank of the player (who got killed).
    For example, if a player kills someone of rank 'Beginner' they get payed $2; Novice: $3; Amateur: $5 etc...

    Ideas for config:
    Code:
    Novice: 2
    Beginner: 3
    Amateur: 5
    Intermediate: 8
    Ideas for commands/plugins:
    /killspay reload (killspay.reload)

    Best way would be to use Vault to handle the economy. If necessary would it be possible to make it 1.8 (UUID) compatible?
    I would make this plugin myself, but I'm currently really busy. I don't really have a preference for what the plugin is called. If you want any details, feel free to ask. I don't mind if you want to upload it to bukkit dev or not. All I really want is something along the lines of what I detailed above, and ASAP please.

    Thanks,
    TheSimpZone
     
  2. Offline

    Cycryl

  3. Offline

    timtower Administrator Administrator Moderator

    Pretty much everybody with anything economy related is.
     
  4. Yeah, I am. Probably should have made it a bit clearer... Thanks for having a look :)

    ---

    Cycryl
    Just wondering if you have got anywhere with the plugin or should I try to do it myself? I'll probably have time next week if you or anyone else can't get it done sooner.
    Thanks :)

    ---

    OK... I guess it's time for a bump then.

    EDIT: Condensed posts
     
  5. Another bump?
     
  6. Offline

    simgar98

  7. Thanks so much!

    simgar98
    (BTW haven't had a chance to test it yet so if I'm wrong please do let me know, but this is just what I figured from the default config)
    Hmm... I wasn't very clear on this at all, but please could it be that it depends on the rank of the player that gets killed, not the rank of the player who does the killing. Sorry about the ambiguity.
    Thanks again,

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  8. Offline

    simgar98

    Well, that was pretty much creating 2 diff plugins for a single request xD
    https://www.dropbox.com/s/u5ui4drpjpccha3/KillCash.jar?dl=0
     
  9. simgar98
    Sorry to keep bugging you :)(I've only just now had a chance to test it), but Every time a player is killed I get this message in console:
    Code:
    16:20:53 CONSOLE: ERROR]: Could not pass event PlayerDeathEvent to KillCash v1.0
    16:20:53 CONSOLE: java.lang.IllegalArgumentException: Path cannot be null
    16:20:53 CONSOLE: Method) ~[?:1.7.0_21]
    16:20:53 CONSOLE: Source) ~[?:1.7.0_21]
    16:20:53 CONSOLE: Source) ~[?:1.7.0_21]
    16:20:53 CONSOLE: Source) ~[?:1.7.0_21]
    I have the config set up as:
    Code:
    ## KillCash's default config
     
    ranks:
        - Beginner
        - Novice
        - Amateur
        - Intermediate
        - Professional
        - Expert
        - Master
        - Premium
        - VIP
        - Aeon
    Beginner: 200
    Novice: 300
    Amateur: 500
    Intermediate: 800
    Professional: 1500
    Expert: 2500
    Master: 4000
    Premium: 5000
    VIP: 7500
    Aeon: 10000
    And they are all valid ranks.

    Thanks again,
     
  10. Offline

    simgar98

  11. Thanks! It works now. BTW if you are planning on releasing it then you should do something with the permissions, because you have to remove the permissions of a previous rank otherwise only the lowest rank works (because of inheritance)
     
  12. Offline

    simgar98

    I believe the top one of the ranks: list should be chosen ;)
    (otherwise, give them a negative perm node, just use a double -, so
    - - killcash.group.group
    to not let them have that perm ;))
     
  13. Yeah that's what I did :) Thanks for this plugin - its great :)
     

Share This Page