Files
Runelite-EssentialsPlus/src/main/java/com/example/ExampleConfig.java
T

42 lines
933 B
Java
Raw Normal View History

2026-09-18 17:18:53 +02:00
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",
2026-09-30 16:48:47 +02:00
description = "General plugin settings.",
2026-09-18 17:18:53 +02:00
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;
}
}