From 09077cc5753681ec159c40bf3703486e478a7fc4 Mon Sep 17 00:00:00 2001 From: Justus Sieweke Date: Fri, 31 May 2024 00:28:57 +0200 Subject: [PATCH] Use correct Component for checking whether plugins are enabled. --- src/main/java/com/bothq/lib/plugin/IPlugin.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/bothq/lib/plugin/IPlugin.java b/src/main/java/com/bothq/lib/plugin/IPlugin.java index f70a01f..9967e1f 100644 --- a/src/main/java/com/bothq/lib/plugin/IPlugin.java +++ b/src/main/java/com/bothq/lib/plugin/IPlugin.java @@ -1,7 +1,7 @@ package com.bothq.lib.plugin; import com.bothq.lib.plugin.config.IConfig; -import com.bothq.lib.plugin.config.component.ICheckBox; +import com.bothq.lib.plugin.config.enabled.IEnabled; import net.dv8tion.jda.api.JDA; /** @@ -10,11 +10,11 @@ * Constructor must be public accessible, without any parameters. */ public interface IPlugin { - ICheckBox getEnabledCheckbox(); + IEnabled getEnabled(); default boolean isEnabled(long serverId) { - return getEnabledCheckbox() + return getEnabled() .get(serverId) - .getValue(); + .isEnabled(); }