With this report i have attached the code i have been using.
I also reported the bug here: https://www.spigotmc.org/threads/enderdragon-not-moving-when-spawned.125789/#post-1336890
When trying to spawn the enderdragon via code it does not move when spawned. I have tried everything i and the community can think of.