Tempban
Modby Redstone_Dubstep
Adds a command to temporarily ban players
Type
Mod
CurseForge Downloads
76,354
CurseForge ID
430597
Last Updated
Sep 5, 2026
Description
A simple Forge mod that adds two commands (/tempban and /tempban-ip) that work exactly like the /ban and /ban-ip command, with the difference that you can specify the length of the ban in hours, days and months.
This makes use of Vanilla's 'expired' field in a ban entry which isn't used in the normal ban command.
Usage:
/tempban <selector> <months> <days> <hours> [<reason>]/tempban-ip <ip> <months> <days> <hours> [<reason>]
To unban temporarily banned users, using the vanilla /pardon and /pardon-ip commands should do the trick.
Since the 'expired' field isn't used anywhere in vanilla, there's not a great deal of support for it within the code, and users which were banned temporarily may face minor issues when joining a server (for example not being able to connect sometimes due to an exception). If any more severe issues occur, feel free to submit an issue on the issue tracker.
This mod is server side only (meaning that players don't need to install this mod at all).
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Simple Unbreakable Tools
Lightweight unbreakable tools
Conquest's Medieval Armors and Weapons
A mod that adds Conquest's medieval armors and weapons
Astral Additions (for Create: Astral)
Music additions for the modpack Create: Astral
LDShadowLady's Flower Breeding: Replanted
This mod allows you to cross-pollinate vanilla flowers to create different flowers in a variety of colours.
BetterNether Forge
An unofficial port of the BetterNether mod to Forge, bringing the latest content to 1.20.1 and adding improvements to th...
Modular Magic
A Modular Machinery addon