v1.2.0
Compatibility
Changes
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.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:ZJhvEghN:VbnaPlkS"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:ZJhvEghN:VbnaPlkS"
}

