RealmRewards (10$ Paypal)

Discussion in 'Archived: Plugin Requests' started by m5k, Nov 4, 2011.

  1. Offline

    m5k

    RealmRewards (10$)
    Earn money by killing people from certain groups controlled by permission nodes.
    Here's a more exact explanation:
    Player with 'realmrewards.paladin' kills a player with 'realmrewards.foxie', gains A Iconomy money.
    Player with 'realmrewards.paladin' kills a player with 'realmrewards.fox', gains B Iconomy money.
    Player with 'realmrewards.paladin' kills a player with 'realmrewards.paladin', gains C Iconomy money.
    Player with 'realmrewards.citizen' kills a player with 'realmrewards.citizen', gains D Iconomy money.
    Player with 'realmrewards.citizen' kills a player with 'realmrewards.paladin', gains E Iconomy money.
    Player with 'realmrewards.paladin' kills a player with 'realmrewards.citizen', gains F Iconomy money.

    In addition to that, a if a player should lose money after killing someone and he's already broke, he should be banned for a set amount of time.

    Config example:
    Code:
    paladinvsfoxie: 5
    paladinvsfox: 10
    paladinvspaladin: -10
    citizenvscitizen: -10
    citizenvspaladin: -10
    paladinvscitizen: -10
    banduration: 10
    If you're interested in this please post here. Previous work is a bonus.
     
  2. Offline

    iffa

    Ah, you're back requesting plugins. Let's see.

    I don't quite understand how the rewarding system would work. More more exact explanation please?
     
  3. Offline

    m5k

    So lets say I'm in the permissionsbukkit group 'Miner'. This group has the 'realmrewards.citizen' permission node set to 'true'. I go out of my way and kill a person in the permission group 'Swordsman", who has the permission node 'realmrewards.paladin' set to true. The plugin checks which permission the killer and the victim have and accordingly either reward or remove some money from the killer.
    Basically, I want citizens to lose money when they kill other citizens (including people in our paladin guild).
    I also want the paladin guild members to be rewarded if they kill the fox clan members, and gain more money for killing their leader.
    Oh and I've also forgotten to request that the player would get banned for 10 minutes of he kills someone he shouldn't and he's already broke. So if a Miner kills a Swordsman while having 0 money, he would get kick-banned for 10 minutes.
     
  4. Offline

    iffa

    Ah, okay.
     
  5. Offline

    greg_t

    i understand what you mean im not the best coder but i will look at this dont rely on me doing it but i will try :) so are the groups defined by what permissionsBukkit group you are in?
     
  6. Offline

    m5k

    permissionsbukkit nodes, specified in the first post.
     
  7. Offline

    greg_t

    sorry i am trying at the moment to do im not the best programmer but i think i will be able to get this to work i will keep you up to date with the progress.
     
  8. Offline

    Rahazan

    It is nearing completion on my end.

    @m5k
    Done, at last. Took a lot longer than expected.

    Download Link:
    <Edit by Moderator: Redacted bit url>

    This plugin depends on this, so you must have this plugin in place too:
    Vault



    The configuration should be pretty self-explanatory.
    Code:
    BanTime: 60
    GroupList:
    - citizen
    - soldier
    Rewards:
      soldiervscitizen: 5
      citizenvssoldier: -5
    
    The permission nodes are as you have requested in OP.
    In the grouplist you add the groups that exist
    The rewards should be pretty self-explanatory.
    Bantime is in seconds.


    Paypal info in signature :>.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Feb 20, 2017
  9. Offline

    m5k

    I'll check it out in ~16 hours. Don't have access to the server atm.
     
  10. Offline

    Rahazan


    So, any luck?
     
  11. Offline

    m5k

    3 hours of sleep, 5 hours of lectures, time to check it out. I'll get back at you soon.

    Okay, I'm most probably doing the config wrong. Here's how it is:
    Code:
    BanTime: 60
    GroupList:
    - PaladinSwordsman
    - Thief
    Rewards:
      PaladinSwordsmanvsThief: 5
    If I kill the thief as a swordsman i don't get any money.
    If it's a bug and you have to work on the plugin please add a message saying "You have been rewarded X Tae for slaying Class" in green if it's a bonus and "You have been fined X Tae for slaying Class" in red if it's a punishment. I'll send you 15$ total if you add that as well.

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

    Rahazan

    Hmm, that's strange, I'll have to look into this, as it was fully functional on my end :/
    Are you sure the there is not a group that inherits both the groups?

    Oh, and you do have Vault in place as well?

    Here, I have created a video that shows the way it works + my permissions file + the config file.


    After this video, I have changed the messages to how you want them, see the code below.
    Code:java
    1.  
    2. //In case of punishment:
    3. killer.sendMessage(ChatColor.DARK_GRAY + "[RealmRewards] " + ChatColor.DARK_RED + "You have been fined " + reward + " Tae for slaying a " + playergroup + ".");
    4. //In case of reward:
    5. killer.sendMessage(ChatColor.DARK_GRAY + "[RealmRewards] " + ChatColor.DARK_GREEN + "You have been rewarded " + reward + " Tae for slaying a " + playergroup + ".");

    I do not know about the importance of capitalization of the groupnames.
    Download link

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

    Rahazan

    @m5k
    Any luck?
     
  14. Offline

    Rahazan

  15. Offline

    m5k

    Sorry for the delay, I've been really busy. I'm looking at it all right now.

    Okay, at this point I don't know what to do. I've tried everything. Gave one group the citizen node, the other the soldier node, nothing happened when i killed the citizen ( soldiervscitizen: -5 in the config), tried the same with foxie and fox permissions, nothing works. Vault is in place, no errors on the log. I even created a groups called soldier and citizen, gave them the right permissions. It just doesn't want to work for some reason. Could you give an example config file that I could copy? I'll explain the names of groups and so on:
    Groupname 'PaladinSwordsman' kills 'Thief'. This gives the paladin 5 money.

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

    DomovoiButler

    what permissions u using? @m5k
     
  17. Offline

    m5k

    PermissionsBukkit
     
  18. Offline

    DomovoiButler

    u said...
    groups right?
    no need for permission nodes like "realmrewards.somethingsomething" ...maybe nodes only for admins to change the stuff in config.yml? what im saying is...the config will look something like this when you start the server
    Code:
    group1:
      group2: 10
      group3: 10
    group2:
      group1: -10
      group3: 10
    group3:
      group1: -10
      group2: 10
    
    ban-time: 10
    on group1 sub group2 ...its if a player in group1 killed a player in group2 they will be rewarded(positive amount) or penalized(negative amount)...groups will be auto generated...u can delete some stuff making it null, meaning no rewards and stuffs? what do you think?
     
  19. Offline

    m5k

    It's a good idea but Rahazan has already made a working (on his server, lol) version. I'm just having troubles configing.
     
  20. Offline

    Rahazan

    @m5k
    Could you add me on Skype? Then maybe we can figure it out together, as I simply do not see how it does not work ;_;

    If you wish, I can also paste the source code here, in this thread.

    Anyway, here are the two files, pasted in code brackets.

    config.yml in the RealmRewards folder.
    Code:
    BanTime: 60
    GroupList:
    - citizen
    - soldier
    Rewards:
      soldiervscitizen: 5
      citizenvssoldier: -5
    
    config.yml in the PermissionsBukkit folder.
    Code:
    users:
        Rahazan:
            permissions:
                permissions.example: true
                realmrewards.citizen: true
            groups:
            - admin
    groups:
        default:
            permissions:
                permissions.build: true
                realmrewards.soldier: true
        admin:
            permissions:
                permissions.*: true
        user:
            permissions:
                permissions.build: true
            worlds:
                creative:
                    coolplugin.item: true
            inheritance:
            - default
    messages:
        build: '&cYou do not have permission to build here.'
    
    By now, I have spent twice as much time checking on this thread than creating the actual plugin + changing the message :(.

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

    Sleaker

    @Rahazan - if there's an issue with how Vault is handling PermissionsBukkit let me know.
     
  22. Offline

    Rahazan

    @m5k Come on mate, lets get this sorted already..
     
  23. Offline

    Shurfire

    go onto his server do /plugins and see if hes running your plugin you made and has still not payed you i have a feeling he has it working nothing in for offense ok to all :p
     
  24. Offline

    affini

    hello, i'm an active person of the Realm of Conquest server which m5k runs, i was online on the 17th when m5k added this plugin to the server. Yes if you do type /plugins it will show your plugin on the list except that no rewards are actually given, also there seems to be a occasional event where people's classes actually disappear and change back to vanilla text (not sure why)

    m5k i know is busy with University but i haven't seen him for about 10 days, when he is available i know he will be back..

    sorry for your wait and inconvenience, but it will be sorted and you will be paid.

    affini
     
  25. Offline

    m5k

    Okay, I finally have some spare time. I haven't seen my friends nor family for the past 2 weeks. My skype is me5kutis, please add me so we can work all of this out. Your signature is missing as well, so I can't pay you immediately. I will, the second you give me the email I have to pay to.
     

Share This Page