Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Creators
Details
š¬š§ English
ā± Player Time Limit Mod
PlayerTimeLimit is a server-side (not client-side) Minecraft mod for Fabric that allows setting daily playtime limits per player, resetting them daily, and managing this time through commands and a public API. Perfect for educational, family, or controlled-play servers.
š Features
- ā³ Configurable daily time per player.
- ā ļø Customizable warnings before time runs out.
- š¤ Automatic kick when time ends.
- š Automatic daily reset based on timezone.
- š¬ Customizable messages.
- š§ Offline player support (UUID cached).
- š Informative BossBar on screen.
- š Permissions support with LuckPerms.
- š¦ Public API for other mods.
š§Ŗ Commands
All commands start with /plt and support player autocompletion, even if they are offline.
/plt check <player> # Shows remaining time
/plt info <player> # Shows detailed status (time, paused, depleted)
/plt addtime <player> <sec> # Adds time to player
/plt removetime <player> <sec> # Removes time from player
/plt resettime <player> # Resets time to default value
/plt pause <player> # Pauses player's time counter
/plt resume <player> # Resumes time counter
/plt reload # Reloads YAML configuration file
š LuckPerms Permissions
Each command requires specific permissions which you can assign using plugins like LuckPerms:
| Permission | Description |
|---|---|
PLimitTime.admin |
Access to all commands |
PLimitTime.command.check |
View player time and info |
PLimitTime.command.addtime |
Add time to players |
PLimitTime.command.removetime |
Remove time from players |
PLimitTime.command.resettime |
Reset player time |
PLimitTime.command.pause |
Pause a player's time |
PLimitTime.command.resume |
Resume a player's time |
PLimitTime.command.reload |
Reload YAML configuration |
ā If LuckPerms is not available,
hasPermissionLevel(4)(operator) will be used as a fallback.
āļø YAML Configuration
Path: config/playertimelimit.yaml
defaultTime: 18000
reset:
time: "00:00"
timezone: "America/Mexico_City"
warnings:
- time: 1800
message: "ā³ 30 minutes of playtime remaining."
- time: 900
message: "ā³ 15 minutes of playtime remaining."
- time: 120
message: "ā³ 2 minutes left. Get ready!"
messages:
timeExpired: " Your playtime for today has ended. See you tomorrow!"
welcome: " Welcome! You have %time% seconds of playtime remaining."
timeAdded: " %time% seconds have been added to your session!"
timeRemoved: " %time% seconds were removed from your session."
timeReset: " Your time has been reset to %time% seconds."
paused: "⨠Your time is currently paused."
bossbar:
message: "Remaining time: %hours%h %minutes%m %seconds%s"
color: WHITE
š§© Public API
The mod exposes a public API for integration with other mods. You can access it from:
import com.TNTStudios.playertimelimit.Playertimelimit;
import com.TNTStudios.playertimelimit.api.PlayerTimeLimitAPI;
PlayerTimeLimitAPI api = Playertimelimit.getAPI();
// Usage examples
api.addTime(uuid, 300); // Add 5 minutes
api.removeTime(uuid, 60); // Subtract 1 minute
api.pause(uuid); // Pause time
api.resume(uuid); // Resume time
int time = api.getTime(uuid); // Get remaining time
boolean paused = api.isPaused(uuid); // Check if paused
š§© Requirements
- Fabric API
- Java 17+
- LuckPerms for advanced permission management.
š License
PlayerTimeLimit is an All Rights Reserved licensed project.
Usage is permitted for private, educational, and personal servers.
Public redistribution or modification is not allowed without prior authorization.
š Credits
Developed by TNTStudios.
Designed to promote responsible, controlled, and customizable gameplay in Minecraft communities.
Thanks for using PlayerTimeLimit! š®
šŖšø EspaƱol
ā± Player Time Limit Mod
PlayerTimeLimit es un mod para servidores (no cliente) de Minecraft en Fabric que permite establecer lĆmites de tiempo de juego por jugador, reiniciarlos diariamente, y gestionar estos tiempos a travĆ©s de comandos y una API pĆŗblica. Ideal para servidores educativos, familiares o con control de juego.
š CaracterĆsticas
- ā³ Tiempo diario configurable por jugador.
- ā ļø Advertencias configurables previas al fin del tiempo.
- š¤ Kick automĆ”tico al terminar el tiempo.
- š Reinicio diario automĆ”tico basado en zona horaria.
- š¬ Mensajes personalizados configurables.
- š§ Soporte para jugadores offline (UUID cacheado).
- š BossBar informativo en pantalla.
- š Soporte de permisos con LuckPerms.
- š¦ API pĆŗblica para otros mods.
š§Ŗ Comandos
Todos los comandos comienzan con /plt y soportan autocompletado de jugadores, incluso si estƔn offline.
/plt check <jugador> # Muestra el tiempo restante
/plt info <jugador> # Muestra estado detallado (tiempo, pausado, agotado)
/plt addtime <jugador> <seg> # Agrega tiempo al jugador
/plt removetime <jugador> <seg> # Remueve tiempo del jugador
/plt resettime <jugador> # Reinicia el tiempo al valor por defecto
/plt pausar <jugador> # Pausa el contador de tiempo del jugador
/plt reanudar <jugador> # Reanuda el contador de tiempo
/plt reload # Recarga el archivo de configuración YAML
š Permisos LuckPerms
Cada comando requiere permisos especĆficos que puedes asignar con plugins como LuckPerms:
| Permiso | Descripción |
|---|---|
PLimitTime.admin |
Acceso a todos los comandos |
PLimitTime.command.check |
Ver tiempo e info de jugadores |
PLimitTime.command.addtime |
AƱadir tiempo a jugadores |
PLimitTime.command.removetime |
Quitar tiempo a jugadores |
PLimitTime.command.resettime |
Reiniciar tiempo de jugadores |
PLimitTime.command.pausar |
Pausar el tiempo de un jugador |
PLimitTime.command.reanudar |
Reanudar el tiempo de un jugador |
PLimitTime.command.reload |
Recargar configuración YAML |
ā Si LuckPerms no estĆ” disponible, se utilizarĆ”
hasPermissionLevel(4)(operador) como mecanismo de fallback.
āļø Configuración YAML
Ruta: config/playertimelimit.yaml
tiempoPorDefecto: 18000
reinicio:
hora: "00:00"
zonaHoraria: "America/Mexico_City"
advertencias:
- tiempo: 1800
mensaje: "ā³ Quedan 30 minutos de juego."
- tiempo: 900
mensaje: "ā³ Quedan 15 minutos de juego."
- tiempo: 120
mensaje: "ⳠQuedan 2 minutos. ”PrepÔrate!"
mensajes:
tiempoAgotado: " Tu tiempo de juego para hoy ha terminado. ”Nos vemos mañana!"
bienvenida: " ”Bienvenido! Tienes %tiempo% segundos restantes de juego."
tiempoAgregado: " ”%tiempo% segundos han sido añadidos a tu sesión!"
tiempoRemovido: " %tiempo% segundos fueron removidos de tu sesión."
tiempoRestablecido: " Tu tiempo ha sido restablecido a %tiempo% segundos."
pausado: "⨠Tu tiempo estÔ actualmente pausado."
bossbar:
message: "Tiempo restante: %horas%h %minutos%m %segundos%s"
color: WHITE
š§© API PĆŗblica
El mod expone una API pĆŗblica para integraciones con otros mods. Puedes acceder a ella desde:
import com.TNTStudios.playertimelimit.Playertimelimit;
import com.TNTStudios.playertimelimit.api.PlayerTimeLimitAPI;
PlayerTimeLimitAPI api = Playertimelimit.getAPI();
// Ejemplos de uso
api.addTime(uuid, 300); // AƱadir 5 minutos
api.removeTime(uuid, 60); // Restar 1 minuto
api.pause(uuid); // Pausar tiempo
api.resume(uuid); // Reanudar tiempo
int tiempo = api.getTime(uuid); // Consultar tiempo restante
boolean pausado = api.isPaused(uuid); // Verificar si estĆ” pausado
š§© Requisitos
- Fabric API
- Java 17+
- LuckPerms para gestión avanzada de permisos.
š Licencia
PlayerTimeLimit es un proyecto con licencia All Rights Reserved.
Su uso estĆ” permitido para servidores privados, educativos y personales.
No se permite redistribuir ni modificar públicamente sin autorización previa.
š CrĆ©ditos
Desarrollado por TNTStudios.
Diseñado con el propósito de fomentar un juego responsable, controlado y personalizable en comunidades de Minecraft.
Ā”Gracias por usar PlayerTimeLimit! š®



