Skip to content

EPT8TPE/AdvancancedBounty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdvancancedBounty

An alternate bounty plugin for pocketmine using EconomyAPI.

How to install

  1. Download the phar from poggit.
  2. Add it to your server's plugin directory.
  3. Restart your server!

Commands + Permissions

  • /bounty me - Informs sender of how much bounty is currently on their head.

  • /bounty see - Check how much bounty is on the head of another player.

  • /bounty add - Add bounty to a player.

  • /bounty reset - Reset the bounty of another player.

    Permissions:

    bounty.command.me:
    default: true
    description: Allows players to use /bounty me.
    
    bounty.command.see:
    default: true
    description: Allows players to use /bounty see.
    
    bounty.command.add:
    default: true
    description: Allows players to add bounty to other players with /bounty add.
    
    bounty.command.reset:
    default: op
    description: Allows players to reset the bounty of another player.
    

Features

  • All messages are configurable in messages.yml.
  • Configurable cooldown for /bounty add in config.yml to prevent exploiting!
  • Ability to set minimum and maximum bounty added in config.yml.
  • Compatibilty with EconomyAPI.
  • When a player with a bounty is killed, their bounty is reset to 0 and whatever they were worth goes to the killer.

Config

~ Main configuration file for bounty

~ Minimum amount a player can set a bounty for:

minimum-amount: 1000

~ Maxiumum amount a player can set a bounty for:

maximum-amount: 100000000

~ Cooldown for adding a bounty to a player in seconds:

bounty-cooldown: 600
  • There is also a messages.yml file that you can edit to change messages!

API

Get a players bounty worth by first getting this plugin, then do:

  $bounty->getBountyWorth($player);

Set a players bounty worth with:

  $bounty->setBountyWorth($player, $amount);

Claim the bounty with:

  $bounty->claimBounty($victim, $killer);

Coming soon

  • Cost for adding bounty to players.

Contact me

Need help or have any suggestions? Contact me on discord TPE#1061 or leave an issue on github or review on poggit, enjoy!

About

An alternate bounty plugin for pocketmine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages