Minecraft timed command

I currently run a minecraft server along with some other people, with the new addition to Discord nitro server boosting we'd like to give people who boost our discord a reward.
The plan is to make a discord Nitro rank in the minecraft server, this rank will expire in 7 days (the amount of time the discord server boost lasts) and then it will restore them to their rank they had before being added to the Nitro group. The problem is how do we make it so the command (if using group manager) waits 7 days without having to manually add them back into their previous rank?
For example, after being the nitro rank for 7 days and having their server boost run out, how would we automatically add them back to their previous rank, the rank they had before they bought the Nitro rank? The command would be simple, /manuadd (player name) (Rank before being added to nitro) but the million dollar question is how do we make that command wait 7 days before activating? Which is the overall question in this. How do we make a command, and set a timer for it to go off in a given period of time.
We've got a multitude of plugins on the server, and are able to download plugins if needed. Thank you for reading! Contact me on discord if needed: CuBe#2808
Best Answer
This answer utilizes plugins, and is not applicable to vanilla servers.
I'm not as familiar with GroupManager, but it seems that the plugin does not offer a "temporary rank" feature.
Considering you can use plugins, use the timed permissions feature offered by PermissionsEX.
pex user <user> group add <group> [world] [time]
where time
parameter is measured in seconds. To add the group to the user globally, use *
in the world
parameter.
Alternatively, there are many plugins dedicated to timed permissions and groups.
Note 1: PEX is unmaintained at the moment, but it works for most servers. A popular alternative is LuckPerms which has a migration feature.
Note 2: Nitro Server Boosts don't expire after 7 days. A server boost stays indefinitely until the booster chooses to boost another server.
Pictures about "Minecraft timed command"



Quick Answer about "Minecraft timed command"
- Open the Chat Window. The easiest way to run a command in Minecraft is within the chat window.
- Type the Command. In this example, we will set the time to day with the following command: /time set day. Once the cheat has been entered, the game will return to daytime:
Using Commands in Minecraft: /time and /weather | 1.11.2
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ivan Babydov, Zen Chung, Sam Lion, Sam Lion