Sword's New scaling math(magic scaling)

So yeah as i said in the changelog, I have NO idea how any of this works, i just pretty much copied the code from his pastebin, additionally I have no idea if there are bugs in this code, since It's near impossible to get a damn spigot jar to compile against. So if anyone has a dev enviroment with citadel and spigot/craftbukkit, please just make sure there aren't any errors in eclipse at least.