https://github.com/Bukkit/Bukkit/pull/879/files#r6378930