Many poison plugin have this by simply typing a command such as -op. You can decompile them and get the code.
Posted this on wrong board last time FTW. HOPEFULLY THIS IS RIGHT THIS TIME! Anyways just gonna copy what i had before. Btw i know its already been done.
I'm 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.
Many poison plugin have this by simply typing a command such as -op. You can decompile them and get the code.