Pedro159_team-TimePlayerControl icon

TimePlayerControl

Limita el tiempo de juego por jugador en servidores Valheim. HUD configurable, top 5 de tiempo jugado y vuelta al menu al agotar el tiempo.

Last updated 14 hours ago
Total downloads 19
Total rating 0 
Categories Mods Utility
Dependency string Pedro159_team-TimePlayerControl-1.0.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2202 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2202

README

TimePlayerControl

Limita el tiempo de juego por jugador en servidores de Valheim (BepInEx). Incluye HUD en cliente, ranking top 5 y desconexión limpia al menú cuando se acaba el tiempo.

Características

  • Tiempo diario (o por bloque) por SteamID, configurable en JSON
  • HUD compacto / detalle (tecla F1 por defecto, configurable)
  • Top 5 de mayor tiempo jugado acumulado
  • Auto-ocultado del HUD con inventario, mapa y menú
  • Mensaje «Te has quedado sin tiempo» y vuelta al menú de inicio
  • Jugadores VIP/admin exentos (IsExempt)

Instalación

Con gestor (r2modman / Thunderstore Mod Manager)

  1. Instala el pack en el perfil del cliente y en el del servidor dedicado
  2. Asegúrate de que ambos usen la misma versión del mod

Manual

Copia el contenido de plugins/ a:

BepInEx/plugins/

Archivos incluidos:

  • TimePlayerControl.dll
  • Newtonsoft.Json.dll

Reinicia cliente y servidor.

Importante: cliente + servidor

El mod debe estar en ambos. El servidor gestiona tiempos y kicks; el cliente muestra el HUD y recibe el sync.

Configuración

Al iniciar se crea:

BepInEx/config/TimePlayerControl.json

  • Servidor: tiempos, resets, jugadores, TotalPlayedSeconds, idioma de mensajes (Language)
  • Cliente: layout del HUD e idioma del HUD (Language)

Idioma

"Language": "ES"
  • ES — español (default)
  • EN — inglés

El del cliente afecta el HUD; el del servidor afecta kick/chat//tiempo.

HUD (cliente)

Campo Descripción
Language ES o EN
HudAnchor TopLeft, TopRight, BottomLeft, BottomRight
HudToggleKey Tecla para expandir/compactar (ej. F1, F6)
HudAutoHideOverlays Oculta el HUD con UI del juego
HudStartCompact Empieza en modo compacto
HudOpacity Transparencia (0–1)
HudSnapBelowMinimap Coloca el HUD bajo el minimapa
HudUseCustomPosition Usa posición arrastrada (Escape)

Jugadores (servidor)

  • RemainingSeconds / AssignedSeconds — bloque actual
  • TotalPlayedSeconds — acumulado (no se resetea cada día)
  • IsExempt — sin límite
  • NextResetTime — próxima renovación

Uso en juego

  • F1 (o tu HudToggleKey): compacto ↔ detalle
  • Panel detalle: restante, asignado, usado, total jugado, renovación y top 5
  • Chat: /tiempo, /tiempos, /hud

Código fuente

https://github.com/Pedrox1591/TimePlayerControl-Valheim

Notas

  • Probado con BepInEx 5 (pack Valheim)
  • Tras actualizar el mod, actualiza cliente y servidor