As some people do not know how to do this, and it is useful to prevent people stealing your code, here is how to obfuscate (https://en.wikipedia.org/wiki/Obfuscation) using ProGuard.
If you don't know what Obfuscation looks like, here is an example of one of my classes, post obfuscation:
1. Download and extract proguard http://sourceforge.net/projects/proguard/files/
2. Create a folder anywhere called "proguard_configs", this is where you will store your configuration files to be used with ProGuard.
3. In the proguard_configs folder, create a new empty proguard config file (.pro) in notepad.
4. Define your configuration, here is the configuration I use for my scripts:
-injars C:\Users\Username\OSBot\Scripts\script.jar
-outjars C:\Users\Username\Obfuscated\script_obf.jar
-libraryjars C:\Users\USername\Downloads\OSBot 2.4.29.jar
-libraryjars C:\Program Files\Java\jre1.8.0_66\lib\rt.jar
-keepattributes *Annotation*
-keep public class package.Main
-injars is file path to the script .jar to be obfuscated
-outjars is the file path to the obfuscated script .jar
-libraryjars are the OSBot.jar and the Java runtime rt.jar
-keepattributes *Annotation* ensures that we keep the @ScriptManifest annotation
Finally we specifiy that we want to keep the main Script class, as we need this as the entry point to our script.
You should replace "package.Main" with the package that your script is in, and the name of your main script file
5. Finally run the following command in cmd / terminal, replacing path_to_proguard with the path to proguard.jar, which is found in the proguard\lib folder, and path_to_config with the path to the .pro file you previously made:
java -jar path_to_proguard.jar @path_to_config.pro
6. Note if you get warnings about missing classes, that are not classes you have defined, add to you config the line, replacing javafx with the package name:
-dontwarn javafx.**