<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#addPermission(org.bukkit.permissions.Permission)"class="member-name-link">addPermission</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permission.html"title="class in org.bukkit.permissions">Permission</a> perm)</code></div>
<divclass="block">Adds a <ahref="../permissions/Permission.html"title="class in org.bukkit.permissions"><code>Permission</code></a> to this plugin manager.</div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#callEvent(org.bukkit.event.Event)"class="member-name-link">callEvent</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../event/Event.html"title="class in org.bukkit.event">Event</a> event)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#disablePlugin(org.bukkit.plugin.Plugin)"class="member-name-link">disablePlugin</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6"><code><ahref="#disablePlugin(org.bukkit.plugin.Plugin,boolean)"class="member-name-link">disablePlugin</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin,
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#enablePlugin(org.bukkit.plugin.Plugin)"class="member-name-link">enablePlugin</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</code></div>
<divclass="block">Enables the specified plugin</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../permissions/Permission.html"title="class in org.bukkit.permissions">Permission</a>></code></div>
<divclass="block">Gets the default permissions for the given op status</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a>></code></div>
<divclass="block">Gets a set containing all subscribed <ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions"><code>Permissible</code></a>s to the given
default list, by op status</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../permissions/Permission.html"title="class in org.bukkit.permissions">Permission</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getPermission(java.lang.String)"class="member-name-link">getPermission</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</code></div>
<divclass="block">Gets a <ahref="../permissions/Permission.html"title="class in org.bukkit.permissions"><code>Permission</code></a> from its fully qualified name</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../permissions/Permission.html"title="class in org.bukkit.permissions">Permission</a>></code></div>
<divclass="block">Gets a set of all registered permissions.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a>></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getPermissionSubscriptions(java.lang.String)"class="member-name-link">getPermissionSubscriptions</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> permission)</code></div>
<divclass="block">Gets a set containing all subscribed <ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions"><code>Permissible</code></a>s to the given
permission, by name</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getPlugin(java.lang.String)"class="member-name-link">getPlugin</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</code></div>
<divclass="block">Checks if the given plugin is loaded and returns it when applicable</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a>[]</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#isPluginEnabled(java.lang.String)"class="member-name-link">isPluginEnabled</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#isPluginEnabled(org.bukkit.plugin.Plugin)"class="member-name-link">isPluginEnabled</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</code></div>
<divclass="block">Checks if the given plugin is enabled or not</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#loadPlugin(java.io.File)"class="member-name-link">loadPlugin</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html"title="class or interface in java.io"class="external-link">File</a> file)</code></div>
<divclass="block">Loads the plugin in the specified file</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a>[]</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#loadPlugins(java.io.File)"class="member-name-link">loadPlugins</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html"title="class or interface in java.io"class="external-link">File</a> directory)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#recalculatePermissionDefaults(org.bukkit.permissions.Permission)"class="member-name-link">recalculatePermissionDefaults</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permission.html"title="class in org.bukkit.permissions">Permission</a> perm)</code></div>
<divclass="block">Recalculates the defaults for the given <ahref="../permissions/Permission.html"title="class in org.bukkit.permissions"><code>Permission</code></a>.</div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#registerEvent(java.lang.Class,org.bukkit.event.Listener,org.bukkit.event.EventPriority,org.bukkit.plugin.EventExecutor,org.bukkit.plugin.Plugin)"class="member-name-link">registerEvent</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends <ahref="../event/Event.html"title="class in org.bukkit.event">Event</a>> event,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../event/Listener.html"title="interface in org.bukkit.event">Listener</a> listener,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../event/EventPriority.html"title="enum class in org.bukkit.event">EventPriority</a> priority,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="EventExecutor.html"title="interface in org.bukkit.plugin">EventExecutor</a> executor,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#registerEvent(java.lang.Class,org.bukkit.event.Listener,org.bukkit.event.EventPriority,org.bukkit.plugin.EventExecutor,org.bukkit.plugin.Plugin,boolean)"class="member-name-link">registerEvent</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends <ahref="../event/Event.html"title="class in org.bukkit.event">Event</a>> event,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../event/Listener.html"title="interface in org.bukkit.event">Listener</a> listener,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../event/EventPriority.html"title="enum class in org.bukkit.event">EventPriority</a> priority,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="EventExecutor.html"title="interface in org.bukkit.plugin">EventExecutor</a> executor,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin,
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#registerEvents(org.bukkit.event.Listener,org.bukkit.plugin.Plugin)"class="member-name-link">registerEvents</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../event/Listener.html"title="interface in org.bukkit.event">Listener</a> listener,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><ahref="#registerInterface(java.lang.Class)"class="member-name-link">registerInterface</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends <ahref="PluginLoader.html"title="interface in org.bukkit.plugin">PluginLoader</a>> loader)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#removePermission(java.lang.String)"class="member-name-link">removePermission</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</code></div>
<divclass="block">Removes a <ahref="../permissions/Permission.html"title="class in org.bukkit.permissions"><code>Permission</code></a> registration from this plugin manager.</div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#removePermission(org.bukkit.permissions.Permission)"class="member-name-link">removePermission</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permission.html"title="class in org.bukkit.permissions">Permission</a> perm)</code></div>
<divclass="block">Removes a <ahref="../permissions/Permission.html"title="class in org.bukkit.permissions"><code>Permission</code></a> registration from this plugin manager.</div>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a> permissible)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#subscribeToPermission(java.lang.String,org.bukkit.permissions.Permissible)"class="member-name-link">subscribeToPermission</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> permission,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a> permissible)</code></div>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a> permissible)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#unsubscribeFromPermission(java.lang.String,org.bukkit.permissions.Permissible)"class="member-name-link">unsubscribeFromPermission</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> permission,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a> permissible)</code></div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html#forRemoval()"title="class or interface in java.lang"class="external-link">forRemoval</a>=true)
</span><spanclass="return-type">void</span> <spanclass="element-name">registerInterface</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends <ahref="PluginLoader.html"title="interface in org.bukkit.plugin">PluginLoader</a>> loader)</span>
throws <spanclass="exceptions"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></span></div>
<divclass="deprecation-block"><spanclass="deprecated-label">Deprecated, for removal: This API element is subject to removal in a future version.</span></div>
<divclass="block">Registers the specified plugin loader</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>loader</code> - Class name of the PluginLoader to register</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - Thrown when the given Class is not a
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a></span> <spanclass="element-name">getPlugin</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</span></div>
<divclass="block">Checks if the given plugin is loaded and returns it when applicable
<p>
Please note that the name of the plugin is case-sensitive</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>name</code> - Name of the plugin to check</dd>
<dt>Returns:</dt>
<dd>Plugin if it exists, otherwise null</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getPlugins()">
<h3>getPlugins</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a>[]</span> <spanclass="element-name">getPlugins</span>()</div>
<divclass="block">Gets a list of all currently loaded plugins</div>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">isPluginEnabled</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</span></div>
<divclass="block">Checks if the given plugin is enabled or not
<p>
Please note that the name of the plugin is case-sensitive.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>name</code> - Name of the plugin to check</dd>
<dt>Returns:</dt>
<dd>true if the plugin is enabled, otherwise false</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Contract.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Contract</a>("null -> false")
</span><spanclass="return-type">boolean</span> <spanclass="element-name">isPluginEnabled</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</span></div>
<divclass="block">Checks if the given plugin is enabled or not</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>plugin</code> - Plugin to check</dd>
<dt>Returns:</dt>
<dd>true if the plugin is enabled, otherwise false</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a></span> <spanclass="element-name">loadPlugin</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html"title="class or interface in java.io"class="external-link">File</a> file)</span>
throws <spanclass="exceptions"><ahref="InvalidPluginException.html"title="class in org.bukkit.plugin">InvalidPluginException</a>,
<ahref="InvalidDescriptionException.html"title="class in org.bukkit.plugin">InvalidDescriptionException</a>,
<ahref="UnknownDependencyException.html"title="class in org.bukkit.plugin">UnknownDependencyException</a></span></div>
<divclass="block">Loads the plugin in the specified file
<p>
File must be valid according to the current enabled Plugin interfaces</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>file</code> - File containing the plugin to load</dd>
<dt>Returns:</dt>
<dd>The Plugin loaded, or null if it was invalid</dd>
<dt>Throws:</dt>
<dd><code><ahref="InvalidPluginException.html"title="class in org.bukkit.plugin">InvalidPluginException</a></code> - Thrown when the specified file is not a
valid plugin</dd>
<dd><code><ahref="InvalidDescriptionException.html"title="class in org.bukkit.plugin">InvalidDescriptionException</a></code> - Thrown when the specified file
contains an invalid description</dd>
<dd><code><ahref="UnknownDependencyException.html"title="class in org.bukkit.plugin">UnknownDependencyException</a></code> - If a required dependency could not
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a>[]</span> <spanclass="element-name">loadPlugins</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html"title="class or interface in java.io"class="external-link">File</a> directory)</span></div>
<divclass="block">Loads the plugins contained within the specified directory</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>directory</code> - Directory to check for plugins</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">callEvent</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../event/Event.html"title="class in org.bukkit.event">Event</a> event)</span>
throws <spanclass="exceptions"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalStateException.html"title="class or interface in java.lang"class="external-link">IllegalStateException</a></span></div>
<divclass="block">Calls an event with the given details</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>event</code> - Event details</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalStateException.html"title="class or interface in java.lang"class="external-link">IllegalStateException</a></code> - Thrown when an asynchronous event is
fired from synchronous code.
<p>
<i>Note: This is best-effort basis, and should not be used to test
synchronized state. This is an indicator for flawed flow logic.</i></dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">registerEvents</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../event/Listener.html"title="interface in org.bukkit.event">Listener</a> listener,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</span></div>
<divclass="block">Registers all the events in the given listener class</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>listener</code> - Listener to register</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">registerEvent</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends <ahref="../event/Event.html"title="class in org.bukkit.event">Event</a>> event,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../event/Listener.html"title="interface in org.bukkit.event">Listener</a> listener,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../event/EventPriority.html"title="enum class in org.bukkit.event">EventPriority</a> priority,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="EventExecutor.html"title="interface in org.bukkit.plugin">EventExecutor</a> executor,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</span></div>
<divclass="block">Registers the specified executor to the given event class</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>event</code> - Event type to register</dd>
<dd><code>listener</code> - Listener to register</dd>
<dd><code>priority</code> - Priority to register this event at</dd>
<dd><code>executor</code> - EventExecutor to register</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">registerEvent</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends <ahref="../event/Event.html"title="class in org.bukkit.event">Event</a>> event,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../event/Listener.html"title="interface in org.bukkit.event">Listener</a> listener,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../event/EventPriority.html"title="enum class in org.bukkit.event">EventPriority</a> priority,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="EventExecutor.html"title="interface in org.bukkit.plugin">EventExecutor</a> executor,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin,
boolean ignoreCancelled)</span></div>
<divclass="block">Registers the specified executor to the given event class</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>event</code> - Event type to register</dd>
<dd><code>listener</code> - Listener to register</dd>
<dd><code>priority</code> - Priority to register this event at</dd>
<dd><code>executor</code> - EventExecutor to register</dd>
<dd><code>plugin</code> - Plugin to register</dd>
<dd><code>ignoreCancelled</code> - Whether to pass cancelled events or not</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">enablePlugin</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</span></div>
<divclass="block">Enables the specified plugin
<p>
Attempting to enable a plugin that is already enabled will have no
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">disablePlugin</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</span></div>
<divclass="block">Disables the specified plugin
<p>
Attempting to disable a plugin that is not enabled will have no effect</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html#forRemoval()"title="class or interface in java.lang"class="external-link">forRemoval</a>=true)
</span><spanclass="modifiers">default</span> <spanclass="return-type">void</span> <spanclass="element-name">disablePlugin</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin,
boolean closeClassloader)</span></div>
<divclass="deprecation-block"><spanclass="deprecated-label">Deprecated, for removal: This API element is subject to removal in a future version.</span>
<divclass="deprecation-comment">Classloader is always closed by upstream now.</div>
</div>
<divclass="block">This method is no longer useful as upstream has
made it so plugin classloaders are always closed on disable.
Use <ahref="#disablePlugin(org.bukkit.plugin.Plugin)"><code>disablePlugin(Plugin)</code></a> instead.</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../permissions/Permission.html"title="class in org.bukkit.permissions">Permission</a></span> <spanclass="element-name">getPermission</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</span></div>
<divclass="block">Gets a <ahref="../permissions/Permission.html"title="class in org.bukkit.permissions"><code>Permission</code></a> from its fully qualified name</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>name</code> - Name of the permission</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">addPermission</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permission.html"title="class in org.bukkit.permissions">Permission</a> perm)</span></div>
<divclass="block">Adds a <ahref="../permissions/Permission.html"title="class in org.bukkit.permissions"><code>Permission</code></a> to this plugin manager.
<p>
If a permission is already defined with the given name of the new
permission, an exception will be thrown.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>perm</code> - Permission to add</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - Thrown when a permission with the same
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">removePermission</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permission.html"title="class in org.bukkit.permissions">Permission</a> perm)</span></div>
<divclass="block">Removes a <ahref="../permissions/Permission.html"title="class in org.bukkit.permissions"><code>Permission</code></a> registration from this plugin manager.
<p>
If the specified permission does not exist in this plugin manager,
nothing will happen.
<p>
Removing a permission registration will <b>not</b> remove the
permission from any <ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions"><code>Permissible</code></a>s that have it.</div>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">removePermission</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</span></div>
<divclass="block">Removes a <ahref="../permissions/Permission.html"title="class in org.bukkit.permissions"><code>Permission</code></a> registration from this plugin manager.
<p>
If the specified permission does not exist in this plugin manager,
nothing will happen.
<p>
Removing a permission registration will <b>not</b> remove the
permission from any <ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions"><code>Permissible</code></a>s that have it.</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../permissions/Permission.html"title="class in org.bukkit.permissions">Permission</a>></span> <spanclass="element-name">getDefaultPermissions</span><wbr><spanclass="parameters">(boolean op)</span></div>
<divclass="block">Gets the default permissions for the given op status</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>op</code> - Which set of default permissions to get</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">recalculatePermissionDefaults</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permission.html"title="class in org.bukkit.permissions">Permission</a> perm)</span></div>
<divclass="block">Recalculates the defaults for the given <ahref="../permissions/Permission.html"title="class in org.bukkit.permissions"><code>Permission</code></a>.
<p>
This will have no effect if the specified permission is not registered
here.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>perm</code> - Permission to recalculate</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">subscribeToPermission</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> permission,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a> permissible)</span></div>
<divclass="block">Subscribes the given Permissible for information about the requested
Permission, by name.
<p>
If the specified Permission changes in any form, the Permissible will
be asked to recalculate.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>permission</code> - Permission to subscribe to</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">unsubscribeFromPermission</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> permission,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a> permissible)</span></div>
<divclass="block">Unsubscribes the given Permissible for information about the requested
Permission, by name.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>permission</code> - Permission to unsubscribe from</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a>></span> <spanclass="element-name">getPermissionSubscriptions</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> permission)</span></div>
<divclass="block">Gets a set containing all subscribed <ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions"><code>Permissible</code></a>s to the given
permission, by name</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>permission</code> - Permission to query for</dd>
<dt>Returns:</dt>
<dd>Set containing all subscribed permissions</dd>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a> permissible)</span></div>
<divclass="block">Subscribes to the given Default permissions by operator status
<p>
If the specified defaults change in any form, the Permissible will be
asked to recalculate.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>op</code> - Default list to subscribe to</dd>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a> permissible)</span></div>
<divclass="block">Unsubscribes from the given Default permissions by operator status</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>op</code> - Default list to unsubscribe from</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a>></span> <spanclass="element-name">getDefaultPermSubscriptions</span><wbr><spanclass="parameters">(boolean op)</span></div>
<divclass="block">Gets a set containing all subscribed <ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions"><code>Permissible</code></a>s to the given
default list, by op status</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>op</code> - Default list to query for</dd>
<dt>Returns:</dt>
<dd>Set containing all subscribed permissions</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getPermissions()">
<h3>getPermissions</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../permissions/Permission.html"title="class in org.bukkit.permissions">Permission</a>></span> <spanclass="element-name">getPermissions</span>()</div>
<divclass="block">Gets a set of all registered permissions.
<p>
This set is a copy and will not be modified live.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>Set containing all current registered permissions</dd>