[2.7] - 2024-05-27
Added
- /report Command: Players can now report issues with
/report <issue>
. Reports include player coordinates and are stored in areports.yml
file. - Report Menu GUI: Admins can view all reports using
/reportmenu
. Each report is displayed in a clickable GUI. - Report Details GUI: When clicking a report in the menu, admins can view details, teleport to the location, and close the report. The teleport button is represented by an Ender Pearl.
- Player Coordinates: The coordinates of the player who made the report are logged and can be accessed in the report details GUI.
- Report ID System: Reports now use a unique ID format based on the player's name and report number (e.g.,
YET1MAN1
for the first report by YET1MAN). - Sort Reports by Date: Reports are now sorted by date, oldest first.
- Configurable Report Feature: Added
enableReportFeature
inconfig.yml
to enable or disable the/report
feature.
Changed
- Warning GUI: Now displays player heads of players with warnings. Clicking on a player head shows their warnings.
- Warnings Storage: Warnings now include the player's IP address.
- Report Deletion Fix: Fixed issue where closing a report would close two reports and display duplicate messages.
- Inventory Management: Admin mode toggles between player and admin inventories.
Fixed
- NullPointerException on Disable: Fixed a bug where disabling the plugin caused a NullPointerException due to
reportHandler
being null. - Method Resolutions: Fixed several issues with method resolutions and missing imports.
Configuration
- config.yml:
enableReportFeature: true
[2.5] - 2024-05-26
New Features
- Admin Mode Inventory: Implemented a feature to switch between player and admin inventories using the
/adminmode
command. Admin inventories are now stored in separate files to persist across server restarts. - Warnings System: Introduced a comprehensive warnings system with the following functionalities:
/warn <player> <reason>
to warn a player with a reason./warnclear <player> <warning number>
to clear a specific warning from a player./warnings <player>
to view the total number of warnings a player has./warnmenu
to open a GUI displaying all players with warnings./mywarnings
to allow players to view their own warnings.
- Warning Reasons GUI: Added a GUI to view detailed reasons for each warning by clicking on player heads in the warnings menu.
- Auto Ban: Configurable auto IP ban feature for players exceeding a specified number of warnings.
- Configurable Commands: The main command and its related functionalities can be configured via the
config.yml
file. - Reload Command: Added a
/yetisutils reload
command to reload plugin configurations dynamically.
Improvements
- Player Head Display: Improved the display of player heads in the GUI to reflect actual player skins.
- Warning Storage: Moved warnings storage to a dedicated
warnings.yml
file for better organization. - Date and Time Formatting: Updated the date and time format for warnings to
dd-MM-yyyy HH:mm
.
Bug Fixes
- Warning Retrieval: Fixed issues with retrieving and displaying warning details correctly in chat and GUIs.
- Tab Completion: Ensured tab completion works correctly for all relevant commands.
- Event Handling: Fixed issues with event handling in the warning GUIs, including back and exit buttons not functioning as intended.
Configuration Updates
- Enable Player Warnings View: Added a configuration option to enable or disable players viewing their own warnings.
- Debug Logging: Added a configuration option to enable or disable debug logging in the console.
- Max Warnings Before Ban: Added a configuration option to set the maximum number of warnings before a player is automatically IP banned.
Miscellaneous
- Code Cleanup: Refactored and optimized code for better performance and readability.
- Compatibility: Ensured compatibility with Minecraft version 1.20.1.
[2.1] - 2024-05-24
Added
Admin Mode: New command /adminmode to toggle between player and admin inventories. Player Warnings: New command /warn to issue warnings to players with a specified reason. Warnings now include a timestamp for when the warning was issued.
Warning Logs:
New command /warnings to check the number of warnings a player has received.
Warning GUI:
New command /warninggui to open a GUI to view and interact with player warnings. Added detailed warning logs in the GUI, showing the warning number, reason, and timestamp. Clicking on a player's head in the warnings GUI opens a detailed reasons GUI. Added a "Back" button in the detailed reasons GUI to return to the player warnings view.
Changed
GUI Layout: Both the warnings GUI and the detailed reasons GUI are now 5 rows (45 slots) high. The detailed reasons GUI includes a "Back" button positioned in the bottom left slot. Plugin Version: Updated the plugin version from 0.1 to 2.1.
Fixed
Inventory Persistence:
Fixed issues where inventories were not being correctly saved and loaded between sessions. Improved inventory switching logic to ensure a smooth transition between player and admin inventories.