Skip to content

renwixx/villager-refresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VillagerRefresh Plugin

Overview

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.) server software.

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

Support

If you encounter any issues or need assistance:

  • Check if the server meets the requirements;
  • Verify the configuration file is correctly formatted;
  • Check server logs for any error messages.

License

This plugin is open source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages