42 lines
933 B
Java
42 lines
933 B
Java
package com.example;
|
|
|
|
import net.runelite.client.config.Config;
|
|
import net.runelite.client.config.ConfigGroup;
|
|
import net.runelite.client.config.ConfigItem;
|
|
import net.runelite.client.config.ConfigSection;
|
|
|
|
@ConfigGroup("example")
|
|
public interface ExampleConfig extends Config
|
|
{
|
|
@ConfigSection(
|
|
name = "General Settings",
|
|
description = "General plugin settings.",
|
|
position = 0
|
|
)
|
|
String generalSection = "generalSection";
|
|
|
|
@ConfigItem(
|
|
keyName = "greeting",
|
|
name = "Welcome Greeting",
|
|
description = "The message to show in game chat when logging in or enabling the plugin",
|
|
section = generalSection,
|
|
position = 1
|
|
)
|
|
default String greeting()
|
|
{
|
|
return "Hello World!";
|
|
}
|
|
|
|
@ConfigItem(
|
|
keyName = "showOnLogin",
|
|
name = "Show on Login",
|
|
description = "Whether to send the greeting message when logging in",
|
|
section = generalSection,
|
|
position = 2
|
|
)
|
|
default boolean showOnLogin()
|
|
{
|
|
return true;
|
|
}
|
|
}
|