Mineuniverse
Log in Register
Mods

Tempban

Adds a command to temporarily ban players
by Redstone_Dubstep
Download Claim this project
56,245 downloads
0 likes
Updated Jun 30, 2026
0 hypes

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).

Tempban-fabric-1.21.11-1.0.3.jar
MC Fabric, Server, 1.21.11
Release 2026-04-04 Get
Tempban-fabric-26.1.1-1.0.3.jar
MC Fabric, Server, 26.1.2, 26.2
Release 2026-04-04 Get
Tempban-neoforge-1.21.11-1.0.3.jar
MC NeoForge, Server, 1.21.11, 26.1.2, 26.2
Release 2026-04-04 Get
Tempban-fabric-1.21.10-1.0.3.jar
MC Fabric, Server, 1.21.10
Release 2025-12-13 Get
Tempban-neoforge-1.21.10-1.0.3.jar
MC NeoForge, Server, 1.21.10
Release 2025-12-13 Get
Tempban-fabric-1.21.3-1.0.3.jar
MC 1.21.5, Fabric, 1.21.4, 1.21.3, 1.21.7, Server
Release 2024-11-16 Get
Tempban-neoforge-1.21.3-1.0.3.jar
MC 1.21.5, 1.21.8, 1.21.4, NeoForge, 1.21.3, Server
Release 2024-11-16 Get
Tempban-fabric-1.21-1.0.3.jar
MC 1.21, Fabric, 1.21.1, Server
Release 2024-07-22 Get
Tempban-neoforge-1.21-1.0.3.jar
MC 1.21, NeoForge, 1.21.1, Server
Release 2024-07-22 Get
Tempban-fabric-1.20.6-1.0.3.jar
MC Fabric, 1.20.6, Server
Release 2024-05-28 Get
Tempban-neoforge-1.20.6-1.0.3.jar
MC NeoForge, 1.20.6, Server
Release 2024-05-28 Get

More from Redstone_Dubstep

Vanishmod
923,028
PlayerNameModifier
87,100
ServerDataAccessor
1,657
ChatContentModifier
1,553

You Might Also Like

APTweaks: Items (11.x Classic)
Item clustering (fallen blocks, experience orbs, ...) and garbage cleanup.
9,884,514
VanillaDeathChest (Fabric)
Places containers when players die that contain their items.
994,762
Styled Nicknames
Simple, but configurable nicknaming mod allowing your server's players (and admins) to change their nickname with full formatting support
989,499
Tiquality
Make server lag the problem of the source player.
99,489
Blame (Fabric)
Those gosh darn crashlogs not saying which worldgen feature is crashing!
99,012
Weathering with You
Forecast Minecraft weather with a radar or a hat!
98,579