https://github.com/Bukkit/Bukkit/pull/1012/files#r9171772