chore: init
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
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 = "Allgemeine Einstellungen für das Plugin",
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user