Filled BountyCommand

Discussion in 'Plugin Requests' started by adi0115, Aug 16, 2016.

Thread Status:
Not open for further replies.
  1. This plugin is just like a normal bounty plugin, but it runs a console command when a bounty is placed & when a player with bounty is killed.
    Commands:
    /bounty <player> - places a bounty on the player
    /bounty remove <player> - removes the bounty on the player
    /bounty reload - reloads the plugin
    Permission:
    bounty.use - ablity to use /bounty & /bounty remove
    bounty.admin - ability to reload the plugin

    In the config you can set which commands you can run when /bounty <player> is placed and when a player withbounty is killed, for exmaple
    Bounty_Place:
    - broadcast Bounty was placed on %Placedplayer%!
    - eco take %Placerplayer% 100
    Bounty_Player_Killed
    - eco give %Killer% 100

    Variables:
    %Placedplayer% - player that the bounty was placed on
    %PlacerPlayer% - The player who placed a bounty
    %Killer% - the person who killed the person with bounty
     
  2. I can do this.
     
  3. Offline

    scout999

  4. Can anyone do this?
     
  5. @adi0115 Yes, I am just wasn't sure if you still wanted it, but now I know you do.
     
    adi0115 likes this.
  6. Offline

    SethxGaming

    I would be glad to do this if you still don't have anyone who is doing it.
     
  7. Offline

    zmaster007

    I made a plugin that does this not too long ago. It's just on GitHub right now, though.
    Once I get home I could recompile everything, make sure it's working and such then upload it to Bukkit for you if you want
    It does (I believe) everything you asked for, except you don't need to set a command for it to run to give money since it uses Vault to transfer the money on its own.
     
    Last edited: Aug 21, 2016
  8. @SethxGaming I'm not sure if Jezzerdo4 started it

    @zmaster007 The money was just an example, I have a custom coin system on my server thats why I require this plugin so my coin system can be used to pay for bountys.
     
  9. Offline

    zmaster007

    Ah, so I assume your coin system doesn't work with Vault?-- oh well, I've been meaning to upload my bounty plugin to Bukkit anyway
     
  10. Correct, it dosen't work with Vault.
     
  11. @adi0115 I have, and I'm nearly done. I can get it to you in the next 2 days if there are few/no bugs.
     
    adi0115 likes this.
  12. Thanks
     
  13. Its been 10 days, are you still making the plugin?
     
  14. Offline

    danielfr789

    Last edited: Sep 1, 2016
  15. Offline

    danielfr789

    Done. https://www.dropbox.com/s/0fzzdkf6wduznsg/BountyCommand.jar?dl=0

    Also now player names are no longer case-sensitive

    A mod was editing my posts before and removed the information I put in so here it is again:

    Commands:
    • /bounty help
    • /bounty place <player>
    • /bounty remove <player>
    • /bounty reload
    Permissions:
    • bounty.use
    • bounty.reload
    EDIT: I didn't test the changes so let me know if anything doesn't work. Feel free to ask if you need other changes.
     
  16. Works very well, but could you add a command /bountys that would display a GUI with heads of the current players that ahve bountys on them? Maybe even show online/offline tag below it to show if they're offline or not. Thanks
     
  17. Offline

    danielfr789

    Working on it now.

    EDIT: Done. https://www.dropbox.com/s/0fzzdkf6wduznsg/BountyCommand.jar?dl=0

    Command is /bounty list

    If a player is online, the name on his head will be green. If offline, it will be red.
     
    Last edited: Sep 2, 2016
    adi0115 likes this.
  18. Thanks a lot, could you only add a variable %amount%, so when a player types /bounty <player> <amount> the amount is made into %amount% variable so it can be used in command such us /broadcast %placer_player% has placed a bounty on %placed_player% for %amount% and so it could also be used in command, but since it has to be a number, if someone enters anything else except a number in the %amount% arg, it would come back with an error? Thats the last thing and then the plugin will be perfect, thanks.
     
  19. Offline

    danielfr789

    Done. https://www.dropbox.com/s/0fzzdkf6wduznsg/BountyCommand.jar?dl=0

    Changes: https://github.com/Agazed/BountyCommand/commit/5ce653904b11c8eff1c9a0007b0f045dd49ca54a

    Also, you may need to clear the bounties section of the config as there is a new way of storing data.
     
    adi0115 likes this.
  20. @danielfr789 I have noticed a lot of people were placing bountys that are $1 and just spamming the server and giving everybody $1 bountys, could you add an option in the config that a minimum amount can be set, so if a player enter the amount below the minimum amount set, it will tell them that the minimum amount is %min_amount%? Thanks
     
  21. Offline

    danielfr789

    Yes working on it now.

    Done: https://www.dropbox.com/s/0fzzdkf6wduznsg/BountyCommand.jar?dl=0

    Changes: https://github.com/Agazed/BountyCommand/commit/ed41536dd04c415f11a5262aafbf31d3e3fa1152

    Backup and refresh your config so the new option generates.
     
    Last edited: Sep 9, 2016
    adi0115 likes this.
  22. Offline

    reopkopres

    there is a bug in the plugin, i tested on my server and i can place a bounty but it dont take the money from me and when another players kill the person with a bounty on the person dont get the money from the kill.
     
  23. Offline

    danielfr789

    You're right. There isn't a check in the plugin for how much money the player has. Fixing this now.

    Done. https://www.dropbox.com/s/0fzzdkf6wduznsg/BountyCommand.jar?dl=0

    Commit: https://github.com/Agazed/BountyCommand/commit/17197b7b01f16f4021a32151b7a221b046e64bac

    Now requires Vault.
     
    Last edited: Oct 3, 2016
  24. Offline

    reopkopres

    Hey agean. Thx for updating it so fast its just 1 problem i am having i get this error message when i type in the command. "An internal error occurred while attempting to preform this command." and in the consol i get this: https://github.com/reopkopres/bountycommands/wiki
     
  25. Offline

    danielfr789

  26. Offline

    reopkopres

    Hey after alot of testing it looks like it still wont work, can you check again if you uploaded the right file or look at the code again? I still have the money problem dont take the money out of the persons bal or adds it to the person that kills the person with the bounty on.
     
  27. Do you have Vault installed on your server?
    If not, this is the link: https://dev.bukkit.org/bukkit-plugins/vault/
     
Thread Status:
Not open for further replies.

Share This Page