Subject: Feature Enhancement for Timed Permissions Plugin

Hello Developer's Name or Team,

I'm a user of your Timed Permissions plugin and I've been thinking about an enhancement that could benefit server management. The feature I'm envisioning is the automatic revocation of certain roles such as moderatorid, ownerid, and staff when a player's group membership ends.

The concept is simple: when a user's group access expires, the plugin would automatically execute console commands to strip these specific roles. This would be particularly helpful in maintaining a clean and automated permissions system.

Here's a basic code snippet for this proposed functionality:

public void OnGroupExpired(string userId) {
    var playerInfo = GetPlayerInformation(userId);
    if (playerInfo != null && playerInfo.CheckExpiredGroups()) {
        playerInfo.HandleExpiredGroups();
        server.Command("removemoderator", userId);
        server.Command("removeowner", userId);
        server.Command("writecfg");
        server.Command("staff remove", userId, "adminl1");
    }
}
 
I hope you find this suggestion useful. Your consideration is appreciated, and I look forward to your thoughts on incorporating this feature.

Warm regards,
Igor

P.S. I'm available for any further discussion on this topic if needed.