JailPlugin icon

JailPlugin -----

Minecraft plugin for customizable player jailing.



Added data archiving, file separation, and task optimization.
1. New Files for Data Storage
  • Two new files are introduced: jail.yml and archive.yml.
  • jail.yml: Used to store information about currently jailed players and the jail location.
  • archive.yml: Keeps a record of jail-related events (e.g., who was jailed, when, for how long, and by whom).
2. Event Archiving
  • The /jail command now logs events into archive.yml, including:
    • Player's name.
    • Time of jailing (timestamp).
    • Jail duration.
    • The sender who initiated the jailing.
3. Separation of Jail Configuration
  • Jail configuration (jailLocation) is now loaded and stored in jail.yml instead of the main configuration file.
4. Improved Message Management
  • Added a getConfigMessage(String path, String defaultMessage) method for easier retrieval of configuration messages with fallback defaults.
5. Optimized Distance and Release Tasks
  • Replaced startReleaseTask and startCheckDistanceTask with startUnjailCheckTask and startDistanceCheckTask.
  • These tasks now run every second and provide more robust checks.
6. Enhancements in Commands
  • The /jail command now verifies that the jail location is set before jailing a player.
  • Improved messages for players in commands like /setjail, /jail, and /unjail.
7. Improved Time Handling
  • Jail duration supports time units (s for seconds, m for minutes, h for hours), with better validation.
  • Applied and tested on live server: majnuj.com
----------, Jan 6, 2025
Resource Information
Author:
----------
Total Downloads: 130
First Release: Jan 4, 2025
Last Update: Jan 6, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings