!!
Please backup your HavenBags files, because after updating to this you can't to back to an older version!
Important: This update requires
ValorlessUtils v1.15.2.297 or newer in order to work.
Important: HavenBags now uses PDC instead of NBT, to help ensure bags get converted smoothly, HavenBags will continue to support NBT on versions 1.21.7 and under.
Convertion happens automatically, you won't have to do a thing.
Important: HavenBags no longer supports Minecraft 1.18 or 1.19.
Added: Support for Minecraft 1.21.6/1.21.7/1.21.8
Added: Option to prevent bags going into bundles.
Checks both if you're holding a bag and clicking a bundle, or vice versa.
Code (YAML):
config.yml
# Can bags be put inside bundles?
bags-in-bundles
: false
Code (YAML):
lang.yml
# Message sent if clicking a bundle with a bag.
bag-in-bundles-error
: '&cBags cannot be put inside bundles.'
Added: Config value "magnet.tick-rate", control how often the magnet feature ticks.
Will require a plugin reload to change.
(Cant go under 1, as that'd crash the server. default is 2. Higher values may have choppy results)
Added: New upgrade GUI for upgrading and applying skins to bags.
Opened by right-clicking a Fletching Table will open the gui.
You can customize the gui in config.yml
Code (YAML):
# Should upgrades and skins be applied through an anvil?
bag-upgrades-anvil
: false
# Custom GUI used to upgrade and skin bags.
upgrade-gui
:
enabled
: true
block
: FLETCHING_TABLE
noteblock
:
# Requires "block" to be NOTE_BLOCK.
instrument
: BASS_DRUM
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Instrument.html
note
: 0
title
: '&eBag Upgrade'
gui-size
: 27
# Must be to the power of 9. i.e. Rows*9, 3*9 = 27
slots:
bag
: 10
# Bag and Token can be used interchangeable.
token
: 12
result
: 15
# upgrade/skin result
filler
: GRAY_STAINED_GLASS_PANE
# Set to AIR to have no fillers, useful when using custom gui.
custom-filler:
'0'
: LIME_STAINED_GLASS_PANE
# Each corner of the 27 slot gui.
'8'
: LIME_STAINED_GLASS_PANE
'18'
: LIME_STAINED_GLASS_PANE
'26'
: LIME_STAINED_GLASS_PANE
success-sound
: ENTITY_VILLAGER_WORK_FLETCHER
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
Added: Instant option for the Magnet feature.
Code (YAML):
config.yml
# Should players be able to magnify their bags?
# If enabled, nearby drops will move towards the player.
magnet:
instant
: false
# This will teleport the items to the player instantly
# instead of moving them over time.
Added: Optional PlayerGUI where players can restore or delete their own bags, if enabled in the config.
This gui ties into the command '/havenbags gui.'
If the player has the permission 'havenbags.gui' the AdminGUI will be opened instead.
Code (YAML):
config.yml
# GUI where the players can restore or delete their own bags.
player-gui:
enabled
: false
# Can players restore their own bags?
self-restore
: true
# Can players delete their own bags?
self-delete
: true
Code (YAML):
lang.yml
# Page Titles
playergui-title-main
: '&aHaven&bBags &rPlayer GUI'
playergui-title-confirm
: '&aHaven&bBags &4&lDELETE&r this bag?'
# Bags found of player'.
# %player% - Name of the player specified.
playergui-bags-of
: 'Bags of
%player%:'
### GUI Buttons ###
# Restoration
playergui-restore
: '&bBag Restoration'
playergui-restore-lore
:
- '&7Restore bags.'
- ''
- '&7Only the basic bag with it''s content will be restored.'
- '&7Things such as weight and auto-pickup filter, will not be restored.'
# Deletion
playergui-delete
: '&4Bag Deletion'
playergui-delete-lore
:
- '&7Delete bags.'
- '&c&oDeleted bags cannot be restored!'
# Cancel
playergui-cancel
: '&4Cancel'
playergui-cancel-lore
:
- '&7Cancel deletion of this bag.'
# Confirm
playergui-confirm
: '&aConfirm'
playergui-confirm-lore
:
- '&7Confirm deletion of this bag.'
- '&7This cannot be undone.'
Added: The auto-pickup feature can now continue picking up items, after the player's inventory is full.
Changed: Updated Magnet to be less performance heavy.
Changed: GUI titles now support PlaceholderAPI.
Changed: The weight.yml weight-lore %bar% now supports PlaceholderAPI.
fill-style and bar-style also support PlaceholderAPI, but the result of the placeholder has to equal 1 character.
Changed: Updated AdminGUI to the following things:
- You can now restore and preview bags of Offline players.
- No longer shows players that don't have any bags.
- Removed the information block, as the info is obsolete now.
- Now loads Players and Bags async to optimize performance.
*Still getting skins to work for offline players.
Changed: BagGUI and AdminGUI, now unregister themselves from listening to events when closed.
This should clear up some usage on servers with frequent player traffic.
Fixed: A mistake causing "refill" not to save on bags, if no other data was changed.
Fixed: Trusted players show up on bags again.
Fixed: An issue where database type FILES failed to load bags with custom names.
Fixed: Upgrade tokens should now accept itemmodels alongside custommodeldata.
Fixed: Carry Limit should no longer prevent pickup of non-bag items, if at the limit.
Fixed: An issue where bags were stuck as "open".
Fixed: A rare bug with weight tooltips, preventing the bag from opening and flooding the console with huge errors.
Fixed: An issue causing newer skin tokens to not work.
Fixed: An issue re-adding deleted bags, if they were deleted shortly after being recently changed.
Fixed: "/havenbags rename" now works on ownerless bags.
Removed: Commands "preview" and "restore".
Refactored:
- Changed havenbags.Main.ServerVersion to valorlessutils.Server.Version; And removed all related functions.
- Changed all config.GetFloat() to config.GetDouble(), as I finally corrected a mistake.
- Updated MySQL Connector J to 8.2.0
Commit:
5951f66