๐ Fixed a bug that caused inventories to not swap the first time a player switches gamemodes. (This only happened when the player's data files didn't exist yet, but it's fixed now)
๐ Fixed a bug that caused some people to lose their inventory if the server was shut down or restarted while the player was still in the server.
๐ Fixed a bug that caused some players to lose their inventory/xp/etc. when joining the server.
๐ Fixed the bypass permission for blacklisted-items.
๐ Fixed nightvision so that it lasts a lot longer than the 14 hours it lasted before (it now lasts about 3.4 years in case you're wondering).
๐ Fixed an issue that caused inventories to not be restored properly when relogging.
๐ Fixed gamemode commands so that it will now run the commands for the gamemode you swap to, not the gamemode you swapped from.
๐น Adds the ability to set commands that will run when a player's inventory is swapped, you can set different commands for each gamemode in the config.
๐ Fixed the hgs.bypass permission to stop players with that permission from having their inventory/ender chest/etc. swapped.
๐ Fixed item-use-prevention to prevent players in creative from using projectiles. (Bows, snowballs, tridents, splash potions, etc.)
๐ Fixed item-drop-prevention not working properly.
๐ Fixed an issue that caused stackable blocks (sugar cane, cactus, dripleaf, dripstone, carpet, scaffolding, etc.) to drop items when broken in creative.
๐ Fixed an issue that caused non-solid blocks around any block destroyed in creative to be destroyed.
๐ Some other small bug fixes.
๐จ Added support for most (if not all) plugins that have custom vehicles.
๐จ Renamed a config option from 'unable-to-break-msg' to 'unable-to-interact-msg' and slightly changed the message for it. (The plugin may not work properly if you don't let the plugin regenerate the config or rename it how I did)
As far as I'm aware, the plugin should now completely prevent people from abusing creative mode! If not, please report any bugs in the Discord server!
๐ Fixed an issue where if a block was broken in creative, the grass/flowers/etc. next to it would also break.
๐ Fixed an issue that caused players in creative to not be able to place item frames and similar blocks onto other blocks.
๐ Fixed a bug that would let you open containers in creative if you were shifting.
๐น Added a prevention that removes players from vehicles if they enter the vehicle in survival/adventure and then switch to creative. (vehicle-enter-prevention)
๐น Added a config option to be able to combine the inventories for survival mode & adventure mode.
๐ Fixed a major issue that broke swapping completely.
๐ Fixed a bug where if you placed gravity blocks too quickly, it would spam errors in the console and not store them properly.
๐ Fixed /getitem to where it won't let you get blacklisted items.
๐จ Made it so that if a block that was placed in creative is exploded, the item(s) will now either not drop, or not break (depending on the config options for track-block-placement)
๐จ Made it to where if a player interacts with a blacklisted item, it will be removed from their inventory.
๐ Fixed a major bug that caused inventory swap to be completely disabled, it should function normally now.
๐ Fixed lily pads so they won't drop when broken in creative.
๐ Fixed bug where commands from certain plugins weren't able to be blacklisted properly.
๐จย Removed the inventory-swap-enabled config option because it didn't do anything, please use the separate-inventories-enabled config option instead.
๐จย Optimizations to the code.
๐ Fixed an error involving gravity blocks that would happen when a block is broken.
๐ Fixed incompatibilities with protection based plugins.
๐จ Improved gravity blocks prevention.
๐จ Made it so that you can't use a crafting table in creative (due to some servers having plugins that keep the items in the crafting table when closing the menu).
๐ Fixed an issue that caused container-use-prevention to stop working.
๐ Fixed an issue with item-use-prevention causing players to not be able to remove the fire from a campfire.
๐ Fixed an issue preventing players from being able to strip logs.
๐Fixed the previous update not working properly.
๐จ You can no longer interact with blocks that were placed by someone in creative if block tracking is enabled.
๐น Added support for 1.20 and 1.20.1.
๐ Fixed commands not working properly when ran through the server console.
๐จ Optimized some code.
๐ Fixed item-use-prevention not working properly.
๐ Fixed spawn-egg-use-prevention and container-use-prevention.
๐Fixed item-use-prevention.
๐Fixed blacklisted-items in config not working properly.
๐Fixed some other bugs.
๐น Added a permission for per-world-inventories (if enabled in config).
๐จ Updated the plugin configuration layout.
๐ Fixed the bypass permission for per-world-inventories when force-gamemode isn't enabled.
๐ Fixed bugs with force gamemode and per-world inventories.
๐จ Removed hgs.noswap permission, because it was useless.