Improvements
- Claim Icon Flag
- The Claim Icon flag now opens an icon selector menu.
- To apply this change, regenerate FlagOptions.yml. Alternatively, manually update the ClaimIcon section with the following configuration:
YAML:ClaimIcon: enable: true material: ITEM_FRAME permission: activate: NONE usage: NONE order: 14 lore: - ' &7Set an icon for the claim, displayed in the GUI. The icon must be a valid material name.' - '' - ' &8• &7Status: &f%gpextension_getbyid_flags_isactiveformatted_ClaimIcon_{claimid}%' - ' &8• &7Current: &f%gpextension_getbyid_claimicon_{claimid}%' - '' requires_argument: false special: '' custom_left_click_commands: - '[player] claim menu icon {claimid}' custom_right_click_commands: - '[player] claim menu icon {claimid}' # If only_run_custom_commands is enabled, flag will not be enabled by default only_run_custom_commands: true only_run_custom_commands_on_disabled: true only_run_custom_commands_on_enabled: false
- Added support for basehead in FlagOptions.yml. Use material: basehead-base64 to enable.
- ClaimList Filter
- Introduced a new filter in ClaimList to sort claims by region type, sub-region, or region.
- Enhanced Claim Trust Detection
- Improved the detection of external changes to claim trust, including commands like /buycontainertrust.
Improvements
- Claim TransferBlock Command
- Enhanced the functionality of the /claim transferblock command for improved usability.
- Introduced a new permission: gpgui.command.transferblock.
- Claim Teleport and Warp in The End
- Improved functionality for claim teleportation and claim warp in the End dimension.
- Unclaim Functionality
- Enhanced the unclaim process for greater reliability and performance.
Fixes
- ClaimBlockSelector GUI
- Resolved an issue causing the ClaimBlockSelector GUI to not work correctly.
- ClaimFly
- Fixed an issue where ClaimFly was not disabling when players teleported outside the region.
- NoEnter Flag
- Addressed an issue where players could bypass the NoEnter flag by teleporting or sliding in water.
- Claim Visualizations
- Fixed claim visualizations not displaying for newly created claims until a server restart.
- TimedFlight
- The TimedFlight feature is now accessible and functional via the console.
- Claim Teleport
- Resolved an issue where the claim teleport location would reset to the surface, even after being manually set.
New Features
- Timed Flight for Players:
Introduced a new feature enabling timed flight within claims, configurable in FlagSettings.yml under the fly section.
- Key Configurations:
enabled: Set to true to activate timed flight.
initialValue: Define starting flight time (e.g., 1m, 10m, 1h30m).
- Commands:
/claim timedflight get <playerName>: Check remaining flight time for a player.
/claim timedflight add <playerName> <time>: Add flight time for a specific player.
/claim timedflight set <playerName> <time>: Set a specific flight time for a player.
/claim timedflight add|set all <time>: Add or set flight time for all players.
- Placeholder: %gpextension_flighttime% displays remaining flight time.
- Customizable Placeholder Time Format:
Added support for customizing the format of the %gpextension_flighttime% placeholder in language.yml.- Default Format:
Code:&7Flight time: &a{hour} &7hours, &a{minute} &7minutes, &a{second} &7secondsImprovements
Enhanced the functionality and reliability of the Fly Flag.
Improved Grief Prevention hook integration for better performance and compatibility.
Fixes
Chain Block Displays: Resolved an issue where chain block displays would not despawn correctly in some cases.
Flag GUI Auto Refresh: Improved the auto-refresh functionality for the Flag GUI.
Flags with Arguments: Ensured flags requiring arguments open the Flag GUI after using the Anvil GUI.
Fly Flag: Addressed multiple issues, including flight not being disabled correctly on claim exit and preventing players from retaining flight permissions outside claims.
Player Move Event: Fixed a NullPointerException during the player move event.
Balloon Despawn: Fixed a NullPointerException during balloon despawn.
GpFlags Reset: Resolved an issue where flags from GpFlags were resetting after server restarts.
EnterMessage and ExitMessage Flags: Fixed formatting issues when using the title display mode.
Compatibility
Added full support for Minecraft 1.20.4, ensuring compatibility with the latest game version.
Fixes
- Claim Owner Null Issue: Fixed a NullPointerException that occurred when standing on a claim where the owner was null. This issue typically happened when world player data was deleted but old claims still existed.
- Command Error: Fixed a NullPointerException that occurred when using the /claim list command.
- Claim List Sorting: Fixed the sort buttons in the claim list, ensuring proper formatting and functionality.
Improvements
- Automatic GUI Refresh: GUIs now automatically refresh when a button is clicked, providing a smoother user experience.
New Features
Manager Cooldown for Claim Settings:
- Added an editable cooldown for new managers. When a player is set as a manager, they must wait for the cooldown to end before editing claim settings. This cooldown is configurable in flagSettings.yml.
Navigation Icons in Claim Upgrades GUI:
- Introduced navigation icons to the Claim Upgrades (Claim Settings) GUI for easier navigation.
- Note: Reset the file for these changes to take effect.
Cooldown for Claim Creation Command:
- Added a 5-second cooldown to the claim creation command to prevent spam and reduce server lag.
Custom Command Sections:
- Added new sections in FlagOptions.yml:
- only_run_custom_commands
- custom_left_click_commands
- custom_right_click_commands
Custom GUIs:
- Added options in config.yml under the gui section to create custom GUIs.
- New example custom GUI file: ClaimUpgradeBiomeSelector_EN.yml.
- Open custom GUIs with the command: /claim menu customgui <guiname> {claimid} {playername}.
Fixes
Claim Block Sell Logic:
- Fixed and improved the logic to prevent the sale of Grief Prevention’s InitialBlocks.
ChangeBiome Flag:
- Resolved an issue where the ChangeBiome flag from gpflags was not functioning correctly.
GUI Issues:
- Fixed a bug where some flags without arguments were not reopening the GUI properly.
Clean Theme GUI: Fixed an issue where the clean theme would not fill the correct number of GUI items.
Claim Creation:
- Addressed a NullPointerException that occurred during claim creation.
PlayerTime Flag:
- Resolved a NullPointerException issue related to the PlayerTime flag.
Flight-Off Block Displays:
- Fixed despawning issues and improved animation for flight-off block displays.
Improvements
GUI Navigation Icons:
- Enhanced navigation icons in GUIs to correctly calculate and display page numbers, avoiding "100+" page bugs.
Fixes
- Fixed an issue with the [console] tag in GUI YMLs that prevented commands from running as console.
Bug Fixes
Resolved a rare NullPointerException that occurred in specific cases.
Fixed an issue where unclaiming did not function correctly after resizing a claim.
Fixed the claim fly permission mode, ensuring it now works properly.
Fixed Compatibility Issues for Minecraft version 1.21.3.
Fixed debug messages that were showing even when debug mode was disabled.
Improvements & Features
Claim Upgrade Overhaul: Redesigned the claim upgrade system with a more modular layout in the YML file. GUI features are now easier to edit. All flag-related configurations have been moved to the new flag folder for better organization.
Region/Claim Visualization: Added an experimental option in config.yml to enable region visualization using Minecraft block displays. A new config option also allows you to change the block type used for visualization.
Configuration Changes
- Added support for the [console] tag in GUI YMLs to allow commands to be run as console.
Moved Configuration Options: The disabled_flags and flag_permissions sections are now relocated from config.yml to flagOptions.yml.
File Relocation: FlagDefaults.yml and FlagOptions.yml have been moved to a new flag folder for better organization.
Note: If these files are still in the main plugin folder, they won’t be deleted automatically. Please copy the content to the new location.
Flag Changes
Flag Removal: The NoPetDamage flag has been removed.
Key Features of this Update
- Claim Upgrade Overhaul: The YML configuration for claim upgrades has been redesigned for better modularity and easier editing. Flag-related settings have been moved to the new flag folder.
- Region/Claim Visualization: A new experimental feature that uses Minecraft block displays to visualize claims and regions, with customizable block types for visualization.
