devblook / akropolis

A modern Minecraft server hub core solution. Based on DeluxeHub by ItsLewizz.
GNU General Public License v3.0
28 stars 9 forks source link

1.20.6 Glowing Enchantment Crash #14

Closed austinpilz closed 3 months ago

austinpilz commented 3 months ago

Describe the bug

When upgrading from 1.20.4 (where Akropolis works) to 1.20.6 on Akropolis version 1.5.2 (latest), the following error prevents the plugin from successfully starting:

Class org.bukkit.enchantments.Enchantment does not have member field 'org.bukkit.enchantments.Enchantment ARROW_INFINITE'

The error is this line of code. When the glow attribute is selected for a menu item, it's attempting to apply the ARROW_INFINITE enchantment which does not exist in 1.20.6

As a workaround, users can disable glow attribute from their menu setups and it won't hit this exception on startup.

Link to latest.log file

https://mclo.gs/UNPo0Sv

Steps to reproduce

  1. Start 1.20.6 server

Expected behavior

Plugin boots up correctly

Technical information

Server software: Paper Server version: 1.20.6 Plugin version: 1.5.2

Additional context

No response