Package | Description |
---|---|
net.md_5.bungee.api.event | |
net.md_5.bungee.api.plugin | |
net.md_5.bungee.api.scheduler |
Modifier and Type | Method and Description |
---|---|
void |
AsyncEvent.completeIntent(Plugin plugin)
Notifies this event that this plugin has completed an intent and wishes
to let the event proceed once all intents have been completed.
|
void |
AsyncEvent.registerIntent(Plugin plugin)
Register an intent that this plugin will continue to perform work on a
background task, and wishes to let the event proceed once the registered
background task has completed.
|
Modifier and Type | Method and Description |
---|---|
Plugin |
PluginManager.getPlugin(String name)
Returns a loaded plugin identified by the specified name.
|
Modifier and Type | Method and Description |
---|---|
Collection<Plugin> |
PluginManager.getPlugins()
Returns the
Plugin objects corresponding to all loaded plugins. |
Modifier and Type | Method and Description |
---|---|
void |
PluginManager.registerCommand(Plugin plugin,
Command command)
Register a command so that it may be executed.
|
void |
PluginManager.registerListener(Plugin plugin,
Listener listener)
Register a
Listener for receiving called events. |
void |
PluginManager.unregisterCommands(Plugin plugin)
Unregister all commands owned by a
Plugin |
void |
PluginManager.unregisterListeners(Plugin plugin)
Unregister all of a Plugin's listener.
|
Constructor and Description |
---|
PluginLogger(Plugin plugin) |
Modifier and Type | Method and Description |
---|---|
Plugin |
ScheduledTask.getOwner()
Return the plugin which scheduled this task for execution.
|
Modifier and Type | Method and Description |
---|---|
int |
TaskScheduler.cancel(Plugin plugin)
Cancel all tasks owned by this plugin, this preventing them from being
executed hereon in.
|
ExecutorService |
TaskScheduler.Unsafe.getExecutorService(Plugin plugin)
An executor service which underlies this scheduler.
|
ScheduledTask |
TaskScheduler.runAsync(Plugin owner,
Runnable task)
Schedule a task to be executed asynchronously.
|
ScheduledTask |
TaskScheduler.schedule(Plugin owner,
Runnable task,
long delay,
long period,
TimeUnit unit)
Schedules a task to be executed asynchronously after the specified delay
is up.
|
ScheduledTask |
TaskScheduler.schedule(Plugin owner,
Runnable task,
long delay,
TimeUnit unit)
Schedules a task to be executed asynchronously after the specified delay
is up.
|
Constructor and Description |
---|
GroupedThreadFactory(Plugin plugin,
String name)
Deprecated.
|
Copyright © 2012–2019 SpigotMC. All rights reserved.