Skip to content

Commit

Permalink
Default for new plugins is :ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Jul 21, 2024
1 parent 409def7 commit c8a0539
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void onPluginEnable(PluginEnableEvent event) {
CommandManager.addPluginCommands(event.getPlugin().getName());

if (PerWorldPlugins.getInstance().getConfig().getStringList("plugins." + event.getPlugin().getName()).isEmpty()) {
PerWorldPlugins.getInstance().getConfig().set("plugins." + event.getPlugin().getName(), Collections.singletonList("Example"));
PerWorldPlugins.getInstance().getConfig().set("plugins." + event.getPlugin().getName(), Collections.singletonList(":ignore"));
PerWorldPlugins.getInstance().saveConfig();
PerWorldPlugins.getInstance().reloadConfig();
}
Expand Down
6 changes: 2 additions & 4 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ blacklist: true
plugins:
# For set group set - g:example (example is the name of group)
# Add and edit groups in the groups.yml
# ":ignore" is for ignore this plugin and don't check this.
# In the Example case, the plugin is blocked in "world" (If is the blacklist on true)
Example:
- "PutWorldInThisListForDisableThisPluginOnWorld"
- "world"
Example2:
# ":ignore" is for ignore this plugin and don't check this.
- "ignore:"

0 comments on commit c8a0539

Please sign in to comment.