This tool mostly relies on AdvancedBan commands to handle all of the punishments.
Staff members can run /adminpunish <playerName> (alias: /aap) to open up a GUI to select mute, jail, or ban for a certain player. The benefit of adding this on top of Advanced Ban is to standardize the length of mute, jail, and ban times that your staff gives to players that have broken the rules.
Side note: The default reasons and the related length of punishments are hard coded in the skript itself. You will likely want to change these. Below are the specific line sections that relate to mute, jails, and bans.
Mute reasons: line 136-146
Jail reasons: lines 163-173
Ban reasons: lines 193-203, and 219-229
In addition, there is also a built-in toggle in the GUI that allows admins (or anyone with minecraft.op permission) to announce the player's punishment to the entire server if they so choose.
Finally, there is also a log for each player accessible through the GUI that will show all of a player's previous mutes, jails, and bans.
*Everyone is allowed to change any part of this skript and use it for your own purposes.