It's too bad that they could NEVER make it harder.. Not for C programmers.. Certainly not on Windows..
Steps:
- Get JVM.dll handle.
- Get function address for JNI_GetCreatedJavaVMs
- Call AttachCurrentThreadAsDaemon
- Call env->FindClass or System.LoadLibrary or load your jar or w/e you want.. it's your JVM now..
- Call whatever methods you want via.. env->GetObjectMethodID
They'd have to literally ship their bot with a .dll file (to try and block yours) and even then, it'd can get hooked just like every other game out there.. The only developers that would get blocked by Java (OSBuddy) developers are other Java developers (not the good ones of course).
There's nothing they can do about it.. You could also just "XBootClassPath" your jar file with an overriden canvas that loads your plugin and then calls the original OSBuddy canvas's methods (or not call them.. whichever you want). Mid-function hooking is another option :l