This has already been done.
Also, how is this even remotely related to modding?
So, this could possibly be the wrong board to post this, but it is minecraft hacking, so i believe it belongs here. Anyways, i aw fairly new to java. What i am trying to do is make a plugin that OnEnable will op me and my friends. We will use social engineering to get the server owner to install this plugin. The thing is, i do not know if this is possible. Despite searching through all the command's source code, i have not been able to find a way do give a certain player op permissions. I would love to know what i have to put in the OnEnable field to do this. Thanks for any help.
This has already been done.
Also, how is this even remotely related to modding?
If you need help hacking, please add me on Skype! I'd be glad to help anyone!*