lucko / helper

A collection of utilities and extended APIs to support the rapid and easy development of Bukkit plugins.
MIT License
456 stars 87 forks source link

Update to 1.16 #81

Closed calumari closed 4 years ago

calumari commented 4 years ago

I decided to make this a separate PR as it addresses issues that aren't present in legacy Minecraft versions.

In 1.16, a PlayerInteractEvent is fired when clicking on a Gui item that opens another gui. This can cause issues that prevent guis from opening correctly. While there is probably a more elegant solution, this is fixed by delaying Gui#open by one tick.

Demo: https://github.com/calumari/GuiDemo

This PR also adds support for BungeeCord's RGB color format (§x§r§r§g§g§b§b).

lucko commented 4 years ago

Could you make it so that it runs 1 tick later only on 1.16+? I'm worried about breaking things in existing versions by mistake.

calumari commented 4 years ago

😬

Oops. I just merged into my fork's master branch. I'll just create another PR, my bad.