You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Runs {@link PluginManager#disablePlugin(Plugin)} with {@code this} as the plugin
315
+
* <br><b>Do not override this method! Override {@link #disable()} instead</b>
316
+
*
317
+
* @see #disable()
318
+
*/
319
+
publicvoiddisablePlugin() {
320
+
Bukkit.getPluginManager().disablePlugin(this);
321
+
}
322
+
294
323
/**
295
324
* Reloads the plugin ({@link #messages}, etc...). This will not trigger {@link #onLoad()} or {@link #onEnable()}
296
325
* <p>This is not run automatically (such as {@link #onEnable()} and {@link #onDisable()}), it is to be used manually by the plugin itself (ex: in a {@code /reload} command)
297
-
* <p><b>Do not try to override this method! Override {@link #reload()} instead</b>
326
+
* <p><b>Do not override this method! Override {@link #reload()} instead</b>
298
327
*
299
328
* @see #reload()
300
329
*/
@@ -315,17 +344,6 @@ public void loadMessages() {
315
344
if (section != null) section.getKeys(false).forEach(key -> globalPlaceholders.put(key, section.getString(key)));
316
345
}
317
346
318
-
/**
319
-
* Disables the plugin. Unregisters commands/listeners, cancels tasks, and then runs {@link PluginManager#disablePlugin(Plugin)}
320
-
* <p><i>This is not meant to be overriden, only override if you know what you're doing!</i>
0 commit comments