Adding Configuration to Your Plugin

Learn how to add user-configurable settings to your plugin. This covers editing ExampleConfig.java and using the @Provides method to enable the settings menu.

4 steps
Progress1 / 4 steps
1

Defining Settings in ExampleConfig

Step 1 of 4

Objective

Add settings to the ExampleConfig interface file.

Explanation

In the example-plugin template, settings must live in 'ExampleConfig.java'. Each method with a '@ConfigItem' annotation becomes a UI element in the RuneLite sidebar. **Important:** Ensure you don't create a duplicate config interface inside your plugin file.

Your Code

java
AdvertisementSet slotId on <AdUnit /> to show ads.