Hide xtea plugin from list
This commit is contained in:
@@ -39,6 +39,12 @@ public @interface PluginDescriptor
|
||||
|
||||
boolean enabledByDefault() default true;
|
||||
|
||||
/**
|
||||
* Whether or not plugin is hidden from configuration panel
|
||||
* @return
|
||||
*/
|
||||
boolean hidden() default false;
|
||||
|
||||
boolean developerPlugin() default false;
|
||||
|
||||
boolean loadWhenOutdated() default false;
|
||||
|
||||
@@ -149,6 +149,7 @@ public class ConfigPanel extends PluginPanel
|
||||
Map<String, JPanel> newChildren = new TreeMap<>();
|
||||
|
||||
pluginManager.getPlugins().stream()
|
||||
.filter(plugin -> !plugin.getClass().getAnnotation(PluginDescriptor.class).hidden())
|
||||
.sorted(Comparator.comparing(left -> left.getClass().getAnnotation(PluginDescriptor.class).name()))
|
||||
.forEach(plugin ->
|
||||
{
|
||||
|
||||
@@ -39,7 +39,8 @@ import net.runelite.http.api.xtea.XteaClient;
|
||||
import okhttp3.Response;
|
||||
|
||||
@PluginDescriptor(
|
||||
name = "Xtea"
|
||||
name = "Xtea",
|
||||
hidden = true
|
||||
)
|
||||
@Slf4j
|
||||
public class XteaPlugin extends Plugin
|
||||
|
||||
Reference in New Issue
Block a user