Sueta

Timed Ranks

1.8.0

Ranks that can wear off!

·Plugin

What does this plugin do:
This plugin runs alongside any permissions plugin and manages Timed Ranks, which are ranks that wear off after a specific amount of time. An admin chooses the amount of time and can set a rank for anyone, they can view the amount of time before their rank will wear off.


Setup:

The setup is fairly simple. You will have to ensure the add/remove commands are set up to work with your permissions plugin you want to use with it.

The commands you type in this will be used to add and remove players from their ranks when they are set and wear off (you won't need to use slashes) (Admin):

/tedit add <command '/'>
/tedit remove <command without '/'>

For example, if you were using PermissionsEX:
/tedit add pex user %user% group add %rank%
/tedit remove pex user %user% group remove %rank%

%rank%: This will be replaced with the rank the user is going to get.
%user%: This will be replaced with the player's name that will obtain the rank.

How to use this plugin for your server:

This plugin is not standalone, you need to have another permissions plugin for this one to work with. It will work with pretty much everything.

To give 'Steve' a rank, for example, a VIP rank for 7 days, you will enter the following command (Admin):
/trank VIP Steve 7 days
/trank <rank> <user> <amount of time> <days/hours/mins>

The first section is the rank, then the player, the third is the time.
You can only use 'days', 'hours' and 'mins'.

You can add and remove time for a player with the following commands:
/tadd <user> <amount of time> <days/hours/mins>
/tremove <user> <amount of time> <days/hours/mins>

To remove a rank early to the wear off date, type (Admin):
/trank remove <user>

Listing the users that have Timed Ranks (Admin):
/trank list

Checking how much time until a user will lose their rank (Admin):
/trank <user>

Members with the timedrank.self permission will be able to use the following command to view how long until their rank will run out:
/tself

Permissions to Commands:

timedranks.self: /tr self
timedranks.edit: /tedit add <command without '/'>
timedranks.edit: /tedit remove <command without '/'>
timedranks.admin: /trank <rank> <user> <time amount> <days/hours/mins>
timedranks.admin: /trank remove <user>
timedranks.admin: /trank <user>
timedranks.admin: /trank list
timedranks.admin: /tadd <user> <amount of time> <days/hours/mins>
timedranks.admin: /tremove <user> <amount of time> <days/hours/mins>

Permissions:

  • timedranks.admin: Set, remove and list ranks, things for Admins. Given to OP by default.
  • timedranks.edit: Edit the commands that are used to add and remove ranks. Given to OP by default.
  • timedranks.self: Allows members to view how long their rank will last. This is given by default.

Join my Support Discord Server for the easiest support:
https://discord.gg/eUWBWh7

Similar projects

Plugin →