Add protected-plugins config option
This commit is contained in:
parent
37823c34c5
commit
b2a1891f8d
5 changed files with 33 additions and 2 deletions
|
|
@ -105,6 +105,10 @@ public class BukkitCommandServerUtils extends CommandServerUtils<BukkitPlugin, P
|
|||
BukkitAudience sender = context.getSender();
|
||||
List<Plugin> plugins = Arrays.asList(context.get("plugins"));
|
||||
|
||||
if (checkProtectedPlugins(sender, plugins)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (checkDependingPlugins(context, sender, plugins, "disableplugin")) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue