Realised that this will only work for bukkit