Peace Time

Allows enabling no‑PvP days. When the selected time ends, PvP is automatically reactivated for all players.

File Details

v1.2.0

  • R
  • Apr 1, 2026
  • 27.03 KB
  • 10
  • 1.20.1
  • Forge

File Name

peacetime-1.2.0.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:peace-time-1485045:7855143")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

v1.2.0

PvP Scheduling System
Peace Time now includes an automatic cycling system for peace and war phases. Configure repeating cycles (e.g., X days of peace followed by Y days of war) that repeat indefinitely.

New Schedule Commands
Three new commands under /peacetime schedule enable complete control over the scheduling system. Start cycles with /peacetime schedule enable, monitor progress with /peacetime schedule status, and disable with /peacetime schedule disable.

Automatic Phase Transitions
Peace and war phases transition automatically based on elapsed time. The system intelligently manages phase changes without manual intervention or server restarts required.

Persistent Scheduling State
Schedule configuration is automatically saved and restored across server restarts. Your cycle settings remain unchanged even after the server goes offline.

Enhanced Time Tracking
The scheduling system inherits the robust time handling from the base mod. It correctly handles /time commands and player sleeping without interrupting the cycle.

Configuration Options
Three new configuration settings allow you to customize default scheduling behavior. Control enableScheduling, schedulePeaceDays, and scheduleWarDays through the peacetime-common.toml file.

Backward Compatible
All existing commands (/peacetime set, /peacetime get, /peacetime reset) continue to work without changes. The scheduling feature is completely optional and works alongside the traditional timer system.