Skip to content

Commit c8a0539

Browse files
author
TonimatasDEV
committed
Default for new plugins is :ignore
1 parent 409def7 commit c8a0539

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/main/java/dev/tonimatas/perworldplugins/listener/Listeners.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public void onPluginEnable(PluginEnableEvent event) {
2121
CommandManager.addPluginCommands(event.getPlugin().getName());
2222

2323
if (PerWorldPlugins.getInstance().getConfig().getStringList("plugins." + event.getPlugin().getName()).isEmpty()) {
24-
PerWorldPlugins.getInstance().getConfig().set("plugins." + event.getPlugin().getName(), Collections.singletonList("Example"));
24+
PerWorldPlugins.getInstance().getConfig().set("plugins." + event.getPlugin().getName(), Collections.singletonList(":ignore"));
2525
PerWorldPlugins.getInstance().saveConfig();
2626
PerWorldPlugins.getInstance().reloadConfig();
2727
}

src/main/resources/config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ blacklist: true
1414
plugins:
1515
# For set group set - g:example (example is the name of group)
1616
# Add and edit groups in the groups.yml
17+
# ":ignore" is for ignore this plugin and don't check this.
18+
# In the Example case, the plugin is blocked in "world" (If is the blacklist on true)
1719
Example:
18-
- "PutWorldInThisListForDisableThisPluginOnWorld"
1920
- "world"
20-
Example2:
21-
# ":ignore" is for ignore this plugin and don't check this.
22-
- "ignore:"

0 commit comments

Comments
 (0)