You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yetanotherx edited this page Jul 26, 2011
·
4 revisions
Setting up your plugin to use the API
Add as a library
After downloading ModTRS, add the JAR file to your classpath. This can be done through your IDE, or through a command line option, depending on what you use.
Initializing the plugin
To get an instance of the API, run the following code (ideally in your plugin's onEnable() method):
Somewhere where you declare variables in your main class place this variable: