Skip to content

Commit

Permalink
Add new plugin & config methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablete1234 committed Oct 19, 2024
1 parent 1ebbf42 commit 9fc40fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/src/main/java/eu/darkbot/api/extensions/PluginInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,9 @@ public interface PluginInfo extends IssueHandler {
*/
URL getDownloadURL();

/**
* @return An array of all the defined feature ids
*/
String[] getFeatureIds();

}
5 changes: 5 additions & 0 deletions api/src/main/java/eu/darkbot/api/managers/ConfigAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ default Set<String> getChildren(ConfigSetting<?> root, String path) {
*/
List<String> getConfigProfiles();

/**
* @return the currently running profile in the bot
*/
String getCurrentProfile();

/**
* Sets the current running profile.
* Note there are no guarantees about it changing immediately, and may change on the next bot tick.
Expand Down

0 comments on commit 9fc40fd

Please sign in to comment.