Sueta

ActiveRanks - Take away ranks for Inactivity

1.1

Rank manager plugin, take away player ranks for inactivity!

·Plugin


Welcome to ActiveRanks! ActiveRanks is a rank manager, not a rank system! To use ActiveRanks you must have a permissions plugin already installed as well as VAULT.
So what is ActiveRanks? ActiveRanks is built for your top ranks. The final, highest rank in your server should be the hardest to get but also the hardest to keep. ActiveRanks checks upon joining if the player has been inactive for x amount of days. If they were inactive then it will demote them! Once demoted they are given the chance to buy the rank back based on how many days they were inactive. Only active players can keep the highest rank!

  • Custom messages!
  • 100% Configurable!
  • Available in all versions! 1.7, 1.8, 1.9, 1.10, 1.11, 1.12 & 1.13!
  • Simple to use!
  • Checks inactivity of player and determines if they should keep the rank!
  • Create multiple rank managers!
  • Light, fast, lag free plugin!
  • /buyback command to allow player the opportunity to buy their rank back.
  • Cost of rank will increase each additional day past min-day!
  • Confirm command on /buyback to make sure user wants to spend x amount of money.

Here is an example rank:

buy-back-seconds: 180 
ranks: 
  diamond: 
    auto-demote-days: 30 
    min-days-to-keep-rank: 7 
    base-price: 15000 
    daily-increase: 2500 
    demote-commands: 
    - pex user %player% group add Iron 
    - pex user %player% group remove Diamond 
    promote-commands: 
    - pex user %player% group add Diamond 
    - pex user %player% group remove Iron

The rank name (In my example its called 'diamond' ) must be lowercase!


buy-back-seconds is 180 meaning that they have 3 minutes to issue command /buyback before they lose their rank forever!

The base-price is the lowest cost the rank will be to buy it back. Each day after your min-day-to-keep-rank will add the daily-increase amount.

auto-demote-days will automatically demote player if they are inactive for x amount of days, no chance to buy back the rank.

demoteCmd & promoteCmd - No slash(/) needed for these commands, the command can be any command!

settings.yml
buy-back-seconds: 180 
ranks: 
  diamond: 
    auto-demote-days: 30 
    min-days-to-keep-rank: 7 
    base-price: 15000 
    daily-increase: 2500 
    demote-commands: 
    - pex user %player% group add Iron 
    - pex user %player% group remove Diamond 
    promote-commands: 
    - pex user %player% group add Diamond 
    - pex user %player% group remove Iron 
  emerald: 
    auto-demote-days: 30 
    min-days-to-keep-rank: 7 
    base-price: 15000 
    daily-increase: 2500 
    demote-commands: 
    - pex user %player% group add Diamond 
    - pex user %player% group remove Emerald 
    promote-commands: 
    - pex user %player% group add Emerald 
    - pex user %player% group remove Diamond 
messages: 
  auto-demote: 
  - '&4&lYou were demoted!' 
  - '&bYou have been demoted for being inactive!' 
  normal-demote: 
  - '&4&lYou were demoted!' 
  - Buy back your rank before it's too late! 
  - '&7/&bbuyback' 
  bought-back: 
  - '&a&lWelcome back to the &6&l%rank%!' 
  - '&c&l$%cost% &c- was withdrawn from your account.' 
  cannot-run-command: 
  - '&cYou cannot run this command!' 
  ran-out-of-time: 
  - '&cSorry, you ran out of time.' 
  - '&c&oUnable to buy back rank.' 
  cannot-afford: 
  - '&cSorry, you cannot afford to buy your rank back.' 
  - '&c&lCost: &c%cost%' 
  confirm-command: 
  - '&aType &l/buyback confirm &a- to confirm purchase!' 
  - '&cNOTE: You were inactive for %days% days and owe $%cost% to buy %rank% back!' 
  - '&c&oYou have 3 minutes to confirm!' 
  no-permission: '&cYou do not have permission to run this command!'


Commands: 
/buyback 
/ar reload 
/ar version 
/ar debug 

Permissions: 
ar.admin



ActiveRanks requires Vault !
You must have a plugin that deals with
permissions & economy to run ActiveRanks!
ActiveRanks is native for 1.13. Mostly tested on 1.12.2 but compatible for all versions.


There are no known bugs right now!
Please report the bugs in a private message to me or on the discussion board! Do not leave a review with an error message! I am very active and will fix bugs ASAP! Many updates coming soon to bring new features and more!


Check out my other plugins!

Liked the plugin? Leave a review!

Similar projects

Plugin →