diff --git a/README.md b/README.md index de04149..345187f 100644 --- a/README.md +++ b/README.md @@ -16,24 +16,25 @@ Latest version: ![GitHub release (latest SemVer including pre-releases)](https:/ Add the following to your lavalink configuration, make sure to replace `VERSION` with the latest version listed above ```yml -plugins: - - dependency: "com.dunctebot:lavalink:VERSION" - repository: "https://jitpack.io" +lavalink: + plugins: + - dependency: "com.dunctebot:lavalink:VERSION" + repository: "https://jitpack.io" ``` # Configuration The plugin exposes these configuration options +
NOTE: this plugins block is a root level object, don't place it where you import the plugin ```yml -lavalink: - plugins: +plugins: dunctebot: - ttsLanguage: "en-AU" # language of the TTS engine - sources: - # true = source enabled, false = source disabled - getyarn: true # www.getyarn.io - clypit: true # www.clyp.it - tts: true # tts:Words to speak - pornhub: true # should be self-explanatory - reddit: true # should be self-explanatory - ocremix: true # www.ocremix.org + ttsLanguage: "en-AU" # language of the TTS engine + sources: + # true = source enabled, false = source disabled + getyarn: true # www.getyarn.io + clypit: true # www.clyp.it + tts: true # tts:Words to speak + pornhub: true # should be self-explanatory + reddit: true # should be self-explanatory + ocremix: true # www.ocremix.org ``` \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index cf799bd..037be83 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,7 +16,7 @@ application { mainClass.set("org.springframework.boot.loader.JarLauncher") } -val pluginVersion = Version(1, 0, 1) +val pluginVersion = Version(1, 1, 0) group = "com.dunctebot" version = "$pluginVersion" diff --git a/src/main/java/com/dunctebot/lavalinkplugin/DuncteBotConfig.java b/src/main/java/com/dunctebot/lavalinkplugin/DuncteBotConfig.java index 5540bdd..54daa2f 100644 --- a/src/main/java/com/dunctebot/lavalinkplugin/DuncteBotConfig.java +++ b/src/main/java/com/dunctebot/lavalinkplugin/DuncteBotConfig.java @@ -4,7 +4,7 @@ import org.springframework.stereotype.Component; @Component -@ConfigurationProperties(prefix = "lavalink.plugins.dunctebot") +@ConfigurationProperties(prefix = "plugins.dunctebot") public class DuncteBotConfig { private String ttsLanguage = "en-AU"; @@ -17,7 +17,7 @@ public void setTtsLanguage(String ttsLanguage) { } @Component - @ConfigurationProperties(prefix = "lavalink.plugins.dunctebot.sources") + @ConfigurationProperties(prefix = "plugins.dunctebot.sources") public static class Sources { private boolean getyarn = true; private boolean clypit = true;