Перейти к содержимому
Mineforgian

Villager Refresh

A plugin to update villager trades that ignores the gamerule doDaylightCycle.

Загрузки
2K
Подписчики
5
Обновлён
4 июня 2026 г.
Лицензия
MIT

Опубликован 15 января 2025 г.

VillagerRefresh is a lightweight Minecraft plugin that solves the issue with villager trade refreshing when the doDaylightCycle gamerule is disabled. It periodically refreshes villager trades regardless of the day/night cycle, allowing players to continue trading and leveling up villagers normally.

Features

  • Automatically refreshes all villager trades at configurable intervals;
  • Works with disabled doDaylightCycle gamerule;
  • Preserves all trade properties (experience rewards, villager experience, price multipliers);
  • Minimal performance impact;
  • Simple configuration.

Requirements

  • Minecraft Server version 1.12.2-latest;
  • Java 8 or higher;
  • Bukkit-based core (Spigot, Paper, Purpur etc.).

Installation

Download the latest release, place it in your server's plugins folder and restart the server or use the /reload command. The plugin will generate a default configuration file at plugins/villager-refresh/config.yml.

Configuration

The plugin uses a simple configuration file (EXAMPLE of config.yml):

# Trade update interval in minutes
refresh-interval-minutes: 20
# Log refreshes into console?
log-refreshes: true

Permissions

Plugin has permission villagerrefresh.commands to prevent regular players use plugin commands.

Commands

  • /vrefresh reload - reload config
  • /vrefresh set [minutes] - set interval for refreshing villagers & reload config

Ченджлог

1.3Релиз1.21.9, 1.21.10, 1.21.11 · 4 июня 2026 г.

Version 1.3 introduces significant improvements and bug fixes, now requiring Minecraft 1.19+ for full compatibility.

Key Changes

Architecture & Performance:

  • Removed event listener implementation, simplifying the plugin structure
  • Changed from task-based event handling to direct scheduler task management with explicit taskId tracking
  • Optimized villager iteration to use loaded chunks instead of all entities

Trade Refresh Logic:

  • Added check to skip villagers with no trades
  • Implemented proper recipe cloning with support for 1.19+ properties: villagerExperience and priceMultiplier
  • Added try-catch for demand/special price methods (version compatibility)
  • Only refresh trades that have actually been used

Command & Configuration:

  • Added interval validation to prevent invalid values
  • Added permission check in tab completion
  • Removed dependency on Objects.requireNonNull() for cleaner code

Bug Fixes:

  • Fixed task cancellation to properly track and cancel individual tasks
  • Improved error messaging for invalid command arguments
1.2Релиз1.21.9, 1.21.10, 1.21.11 · 7 сентября 2025 г.

made support for 1.12.2-1.21.8 versions

1.1Релиз1.21.2, 1.21.3, 1.21.4 · 17 января 2025 г.

Bugfix:

  • Fixed potential bug that prevented villagers from choosing a profession

Added:

  • Commands for using plugin config live; /vrefresh reload (reload config) and /vrefresh set [minutes] (set interval for refreshing villagers & reload config)
  • LuckPerms permission villagerrefresh.commands (to prevent regular players use plugin commands)
  • Enhanced refresher logic
1.0-SNAPSHOTРелиз1.21.2, 1.21.3, 1.21.4 · 15 января 2025 г.

First release!

Комментарии

Загружаем…