Uses of Interface
org.bukkit.plugin.Plugin
Packages that use Plugin
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes relating to handling specialized non-chat player input.
Classes dedicated to facilitate direct player-to-plugin communication.
Interfaces for non-voxel objects that can exist in a
world, including all players, monsters, projectiles, etc.Classes dedicated to handling triggered code executions.
Events relating to programmatic state
changes on the server.Classes dedicated to providing a layer of plugin specified data on various
Minecraft concepts.
Classes dedicated to providing binary state properties to players.
Classes specifically relating to loading software modules at runtime.
Classes for handling
plugins written in
java.Classes dedicated to specialized plugin to client protocols.
Classes dedicated to letting
plugins run
code at specific time intervals, including thread safety.-
Uses of Plugin in org.bukkit
Methods in org.bukkit that return types with arguments of type PluginModifier and TypeMethodDescriptionChunk.getPluginChunkTickets()Retrieves a collection specifying which plugins have tickets for this chunk.Map<Plugin,Collection<Chunk>>World.getPluginChunkTickets()Returns a map of which plugins have tickets for what chunks.World.getPluginChunkTickets(int x, int z)Retrieves a collection specifying which plugins have tickets for the specified chunk.Methods in org.bukkit with parameters of type PluginModifier and TypeMethodDescriptionbooleanChunk.addPluginChunkTicket(Plugin plugin)Adds a plugin ticket for this chunk, loading this chunk if it is not already loaded.booleanWorld.addPluginChunkTicket(int x, int z, Plugin plugin)Adds a plugin ticket for the specified chunk, loading the chunk if it is not already loaded.static NamespacedKeyNamespacedKey.fromString(String string, Plugin defaultNamespace)Get a NamespacedKey from the supplied string with a default namespace if a namespace is not defined.booleanChunk.removePluginChunkTicket(Plugin plugin)Removes the specified plugin's ticket for this chunkbooleanWorld.removePluginChunkTicket(int x, int z, Plugin plugin)Removes the specified plugin's ticket for the specified chunkvoidWorld.removePluginChunkTickets(Plugin plugin)Removes all plugin tickets for the specified pluginConstructors in org.bukkit with parameters of type PluginModifierConstructorDescriptionNamespacedKey(Plugin plugin, String key)Create a key in the plugin's namespace. -
Uses of Plugin in org.bukkit.command
Methods in org.bukkit.command that return PluginModifier and TypeMethodDescriptionPluginCommand.getPlugin()Gets the owner of this PluginCommandPluginIdentifiableCommand.getPlugin()Gets the owner of this PluginIdentifiableCommand.Methods in org.bukkit.command with parameters of type PluginModifier and TypeMethodDescriptionConstructors in org.bukkit.command with parameters of type Plugin -
Uses of Plugin in org.bukkit.conversations
Fields in org.bukkit.conversations declared as PluginModifier and TypeFieldDescriptionprotected PluginConversationFactory.pluginprotected PluginInactivityConversationCanceller.pluginprotected PluginPluginNameConversationPrefix.pluginMethods in org.bukkit.conversations that return PluginModifier and TypeMethodDescriptionConversationContext.getPlugin()Gets the plugin that owns this conversation.Constructors in org.bukkit.conversations with parameters of type PluginModifierConstructorDescriptionConversation(Plugin plugin, Conversable forWhom, Prompt firstPrompt)Initializes a new Conversation.Conversation(Plugin plugin, Conversable forWhom, Prompt firstPrompt, Map<Object,Object> initialSessionData)Initializes a new Conversation.ConversationContext(Plugin plugin, Conversable forWhom, Map<Object,Object> initialSessionData)ConversationFactory(Plugin plugin)Constructs a ConversationFactory.InactivityConversationCanceller(Plugin plugin, int timeoutSeconds)Creates an InactivityConversationCanceller.PlayerNamePrompt(Plugin plugin)PluginNameConversationPrefix(Plugin plugin)PluginNameConversationPrefix(Plugin plugin, String separator, ChatColor prefixColor) -
Uses of Plugin in org.bukkit.entity
Methods in org.bukkit.entity with parameters of type PluginModifier and TypeMethodDescriptionvoidPlayer.hidePlayer(Plugin plugin, Player player)Hides a player from this playervoidPlayer.showPlayer(Plugin plugin, Player player)Allows this player to see a player that was previously hidden. -
Uses of Plugin in org.bukkit.event
Methods in org.bukkit.event with parameters of type PluginModifier and TypeMethodDescriptionstatic ArrayList<RegisteredListener>HandlerList.getRegisteredListeners(Plugin plugin)Get a specific plugin's registered listeners associated with this handler listvoidHandlerList.unregister(Plugin plugin)Remove a specific plugin's listeners from this handlerstatic voidHandlerList.unregisterAll(Plugin plugin)Unregister a specific plugin's listeners from all handler lists. -
Uses of Plugin in org.bukkit.event.server
Methods in org.bukkit.event.server that return PluginConstructors in org.bukkit.event.server with parameters of type PluginModifierConstructorDescriptionPluginDisableEvent(Plugin plugin)PluginEnableEvent(Plugin plugin)PluginEvent(Plugin plugin) -
Uses of Plugin in org.bukkit.metadata
Fields in org.bukkit.metadata with type parameters of type PluginModifier and TypeFieldDescriptionprotected WeakReference<Plugin>MetadataValueAdapter.owningPluginMethods in org.bukkit.metadata that return PluginModifier and TypeMethodDescriptionMetadataValue.getOwningPlugin()Returns thePluginthat created this metadata item.MetadataValueAdapter.getOwningPlugin()Methods in org.bukkit.metadata with parameters of type PluginModifier and TypeMethodDescriptionvoidMetadataStore.invalidateAll(Plugin owningPlugin)Invalidates all metadata in the metadata store that originates from the given plugin.voidMetadataStoreBase.invalidateAll(Plugin owningPlugin)Invalidates all metadata in the metadata store that originates from the given plugin.voidMetadatable.removeMetadata(String metadataKey, Plugin owningPlugin)Removes the given metadata value from the implementing object's metadata store.voidMetadataStore.removeMetadata(T subject, String metadataKey, Plugin owningPlugin)Removes a metadata item owned by a plugin from a subject.voidMetadataStoreBase.removeMetadata(T subject, String metadataKey, Plugin owningPlugin)Removes a metadata item owned by a plugin from a subject.Constructors in org.bukkit.metadata with parameters of type PluginModifierConstructorDescriptionFixedMetadataValue(Plugin owningPlugin, Object value)Initializes a FixedMetadataValue with an ObjectprotectedLazyMetadataValue(Plugin owningPlugin)Protected special constructor used by FixedMetadataValue to bypass standard setup.LazyMetadataValue(Plugin owningPlugin, Callable<Object> lazyValue)Initialized a LazyMetadataValue object with the default CACHE_AFTER_FIRST_EVAL cache strategy.LazyMetadataValue(Plugin owningPlugin, LazyMetadataValue.CacheStrategy cacheStrategy, Callable<Object> lazyValue)Initializes a LazyMetadataValue object with a specific cache strategy.protectedMetadataValueAdapter(Plugin owningPlugin) -
Uses of Plugin in org.bukkit.permissions
Methods in org.bukkit.permissions that return PluginModifier and TypeMethodDescriptionPermissionAttachment.getPlugin()Gets the plugin responsible for this attachmentMethods in org.bukkit.permissions with parameters of type PluginModifier and TypeMethodDescriptionPermissible.addAttachment(Plugin plugin)Adds a new emptyPermissionAttachmentto this objectPermissible.addAttachment(Plugin plugin, int ticks)Temporarily adds a new emptyPermissionAttachmentto this objectPermissible.addAttachment(Plugin plugin, String name, boolean value)Adds a newPermissionAttachmentwith a single permission by name and valuePermissible.addAttachment(Plugin plugin, String name, boolean value, int ticks)Temporarily adds a newPermissionAttachmentwith a single permission by name and valuePermissibleBase.addAttachment(Plugin plugin)PermissibleBase.addAttachment(Plugin plugin, int ticks)PermissibleBase.addAttachment(Plugin plugin, String name, boolean value)PermissibleBase.addAttachment(Plugin plugin, String name, boolean value, int ticks)Constructors in org.bukkit.permissions with parameters of type Plugin -
Uses of Plugin in org.bukkit.plugin
Classes in org.bukkit.plugin that implement PluginMethods in org.bukkit.plugin that return PluginModifier and TypeMethodDescriptionChecks if the given plugin is loaded and returns it when applicableRegisteredListener.getPlugin()Gets the plugin for this registrationRegisteredServiceProvider.getPlugin()Checks if the given plugin is loaded and returns it when applicablePlugin[]PluginManager.getPlugins()Gets a list of all currently loaded pluginsPlugin[]SimplePluginManager.getPlugins()PluginLoader.loadPlugin(File file)Loads the plugin contained in the specified filePluginManager.loadPlugin(File file)Loads the plugin in the specified fileSimplePluginManager.loadPlugin(File file)Loads the plugin in the specified filePlugin[]PluginManager.loadPlugins(File directory)Loads the plugins contained within the specified directoryPlugin[]SimplePluginManager.loadPlugins(File directory)Loads the plugins contained within the specified directoryMethods in org.bukkit.plugin with parameters of type PluginModifier and TypeMethodDescriptionMap<Class<? extends Event>,Set<RegisteredListener>>PluginLoader.createRegisteredListeners(Listener listener, Plugin plugin)Creates and returns registered listeners for the event classes used in this listenervoidPluginLoader.disablePlugin(Plugin plugin)Disables the specified pluginvoidPluginManager.disablePlugin(Plugin plugin)Disables the specified pluginvoidSimplePluginManager.disablePlugin(Plugin plugin)voidPluginLoader.enablePlugin(Plugin plugin)Enables the specified pluginvoidPluginManager.enablePlugin(Plugin plugin)Enables the specified pluginvoidSimplePluginManager.enablePlugin(Plugin plugin)ServicesManager.getRegistrations(Plugin plugin)Get registrations of providers for a plugin.SimpleServicesManager.getRegistrations(Plugin plugin)Get registrations of providers for a plugin.booleanPluginManager.isPluginEnabled(Plugin plugin)Checks if the given plugin is enabled or notbooleanSimplePluginManager.isPluginEnabled(Plugin plugin)Checks if the given plugin is enabled or not<T> voidServicesManager.register(Class<T> service, T provider, Plugin plugin, ServicePriority priority)Register a provider of a service.<T> voidSimpleServicesManager.register(Class<T> service, T provider, Plugin plugin, ServicePriority priority)Register a provider of a service.voidPluginManager.registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin)Registers the specified executor to the given event classvoidPluginManager.registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin, boolean ignoreCancelled)Registers the specified executor to the given event classvoidSimplePluginManager.registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin)voidSimplePluginManager.registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin, boolean ignoreCancelled)Registers the given event to the specified listener using a directly passed EventExecutorvoidPluginManager.registerEvents(Listener listener, Plugin plugin)Registers all the events in the given listener classvoidSimplePluginManager.registerEvents(Listener listener, Plugin plugin)voidServicesManager.unregisterAll(Plugin plugin)Unregister all the providers registered by a particular plugin.voidSimpleServicesManager.unregisterAll(Plugin plugin)Unregister all the providers registered by a particular plugin.Constructors in org.bukkit.plugin with parameters of type PluginModifierConstructorDescriptionPluginLogger(Plugin context)Creates a new PluginLogger that extracts the name from a plugin.RegisteredListener(Listener listener, EventExecutor executor, EventPriority priority, Plugin plugin, boolean ignoreCancelled)RegisteredServiceProvider(Class<T> service, T provider, ServicePriority priority, Plugin plugin)TimedRegisteredListener(Listener pluginListener, EventExecutor eventExecutor, EventPriority eventPriority, Plugin registeredPlugin, boolean listenCancelled) -
Uses of Plugin in org.bukkit.plugin.java
Classes in org.bukkit.plugin.java that implement PluginMethods in org.bukkit.plugin.java that return PluginMethods in org.bukkit.plugin.java with parameters of type PluginModifier and TypeMethodDescriptionMap<Class<? extends Event>,Set<RegisteredListener>>JavaPluginLoader.createRegisteredListeners(Listener listener, Plugin plugin)voidJavaPluginLoader.disablePlugin(Plugin plugin)voidJavaPluginLoader.enablePlugin(Plugin plugin) -
Uses of Plugin in org.bukkit.plugin.messaging
Methods in org.bukkit.plugin.messaging that return PluginModifier and TypeMethodDescriptionPluginMessageListenerRegistration.getPlugin()Gets the plugin that this registration is for.Methods in org.bukkit.plugin.messaging with parameters of type PluginModifier and TypeMethodDescriptionMessenger.getIncomingChannelRegistrations(Plugin plugin)Gets a set containing all the incoming plugin channel registrations that the specified plugin has.Messenger.getIncomingChannelRegistrations(Plugin plugin, String channel)Gets a set containing all the incoming plugin channel registrations that the specified plugin has on the requested channel.StandardMessenger.getIncomingChannelRegistrations(Plugin plugin)StandardMessenger.getIncomingChannelRegistrations(Plugin plugin, String channel)Messenger.getIncomingChannels(Plugin plugin)Gets a set containing all the incoming plugin channels that the specified plugin is registered for.StandardMessenger.getIncomingChannels(Plugin plugin)Messenger.getOutgoingChannels(Plugin plugin)Gets a set containing all the outgoing plugin channels that the specified plugin is registered to.StandardMessenger.getOutgoingChannels(Plugin plugin)booleanMessenger.isIncomingChannelRegistered(Plugin plugin, String channel)Checks if the specified plugin has registered to receive incoming messages through the requested channel.booleanStandardMessenger.isIncomingChannelRegistered(Plugin plugin, String channel)booleanMessenger.isOutgoingChannelRegistered(Plugin plugin, String channel)Checks if the specified plugin has registered to send outgoing messages through the requested channel.booleanStandardMessenger.isOutgoingChannelRegistered(Plugin plugin, String channel)Messenger.registerIncomingPluginChannel(Plugin plugin, String channel, PluginMessageListener listener)Registers the specific plugin for listening on the requested incoming plugin channel, allowing it to act upon any plugin messages.StandardMessenger.registerIncomingPluginChannel(Plugin plugin, String channel, PluginMessageListener listener)voidMessenger.registerOutgoingPluginChannel(Plugin plugin, String channel)Registers the specific plugin to the requested outgoing plugin channel, allowing it to send messages through that channel to any clients.voidStandardMessenger.registerOutgoingPluginChannel(Plugin plugin, String channel)voidPluginMessageRecipient.sendPluginMessage(Plugin source, String channel, byte[] message)Sends this recipient a Plugin Message on the specified outgoing channel.voidMessenger.unregisterIncomingPluginChannel(Plugin plugin)Unregisters the specific plugin from listening on all plugin channels through all listeners.voidMessenger.unregisterIncomingPluginChannel(Plugin plugin, String channel)Unregisters the specific plugin from listening on the requested incoming plugin channel, no longer allowing it to act upon any plugin messages.voidMessenger.unregisterIncomingPluginChannel(Plugin plugin, String channel, PluginMessageListener listener)Unregisters the specific plugin's listener from listening on the requested incoming plugin channel, no longer allowing it to act upon any plugin messages.voidStandardMessenger.unregisterIncomingPluginChannel(Plugin plugin)voidStandardMessenger.unregisterIncomingPluginChannel(Plugin plugin, String channel)voidStandardMessenger.unregisterIncomingPluginChannel(Plugin plugin, String channel, PluginMessageListener listener)voidMessenger.unregisterOutgoingPluginChannel(Plugin plugin)Unregisters the specific plugin from all outgoing plugin channels, no longer allowing it to send any plugin messages.voidMessenger.unregisterOutgoingPluginChannel(Plugin plugin, String channel)Unregisters the specific plugin from the requested outgoing plugin channel, no longer allowing it to send messages through that channel to any clients.voidStandardMessenger.unregisterOutgoingPluginChannel(Plugin plugin)voidStandardMessenger.unregisterOutgoingPluginChannel(Plugin plugin, String channel)static voidStandardMessenger.validatePluginMessage(Messenger messenger, Plugin source, String channel, byte[] message)Validates the input of a Plugin Message, ensuring the arguments are all valid.Constructors in org.bukkit.plugin.messaging with parameters of type PluginModifierConstructorDescriptionPluginMessageListenerRegistration(Messenger messenger, Plugin plugin, String channel, PluginMessageListener listener) -
Uses of Plugin in org.bukkit.scheduler
Methods in org.bukkit.scheduler that return PluginModifier and TypeMethodDescriptionBukkitTask.getOwner()Returns the Plugin that owns this task.BukkitWorker.getOwner()Returns the Plugin that owns this task.Methods in org.bukkit.scheduler with parameters of type PluginModifier and TypeMethodDescription<T> Future<T>BukkitScheduler.callSyncMethod(Plugin plugin, Callable<T> task)Calls a method on the main thread and returns a Future object.voidBukkitScheduler.cancelTasks(Plugin plugin)Removes all tasks associated with a particular plugin from the scheduler.Schedules this in the Bukkit scheduler to run on next tick.Returns a task that will run on the next server tick.voidBukkitScheduler.runTask(Plugin plugin, Consumer<BukkitTask> task)Returns a task that will run on the next server tick.BukkitScheduler.runTask(Plugin plugin, BukkitRunnable task)Deprecated.BukkitRunnable.runTaskAsynchronously(Plugin plugin)Asynchronous tasks should never access any API in Bukkit.BukkitScheduler.runTaskAsynchronously(Plugin plugin, Runnable task)Asynchronous tasks should never access any API in Bukkit.voidBukkitScheduler.runTaskAsynchronously(Plugin plugin, Consumer<BukkitTask> task)Asynchronous tasks should never access any API in Bukkit.BukkitScheduler.runTaskAsynchronously(Plugin plugin, BukkitRunnable task)Deprecated.BukkitRunnable.runTaskLater(Plugin plugin, long delay)Schedules this to run after the specified number of server ticks.BukkitScheduler.runTaskLater(Plugin plugin, Runnable task, long delay)Returns a task that will run after the specified number of server ticks.voidBukkitScheduler.runTaskLater(Plugin plugin, Consumer<BukkitTask> task, long delay)Returns a task that will run after the specified number of server ticks.BukkitScheduler.runTaskLater(Plugin plugin, BukkitRunnable task, long delay)Deprecated.BukkitRunnable.runTaskLaterAsynchronously(Plugin plugin, long delay)Asynchronous tasks should never access any API in Bukkit.BukkitScheduler.runTaskLaterAsynchronously(Plugin plugin, Runnable task, long delay)Asynchronous tasks should never access any API in Bukkit.voidBukkitScheduler.runTaskLaterAsynchronously(Plugin plugin, Consumer<BukkitTask> task, long delay)Asynchronous tasks should never access any API in Bukkit.BukkitScheduler.runTaskLaterAsynchronously(Plugin plugin, BukkitRunnable task, long delay)Deprecated.BukkitRunnable.runTaskTimer(Plugin plugin, long delay, long period)Schedules this to repeatedly run until cancelled, starting after the specified number of server ticks.BukkitScheduler.runTaskTimer(Plugin plugin, Runnable task, long delay, long period)Returns a task that will repeatedly run until cancelled, starting after the specified number of server ticks.voidBukkitScheduler.runTaskTimer(Plugin plugin, Consumer<BukkitTask> task, long delay, long period)Returns a task that will repeatedly run until cancelled, starting after the specified number of server ticks.BukkitScheduler.runTaskTimer(Plugin plugin, BukkitRunnable task, long delay, long period)Deprecated.BukkitRunnable.runTaskTimerAsynchronously(Plugin plugin, long delay, long period)Asynchronous tasks should never access any API in Bukkit.BukkitScheduler.runTaskTimerAsynchronously(Plugin plugin, Runnable task, long delay, long period)Asynchronous tasks should never access any API in Bukkit.voidBukkitScheduler.runTaskTimerAsynchronously(Plugin plugin, Consumer<BukkitTask> task, long delay, long period)Asynchronous tasks should never access any API in Bukkit.BukkitScheduler.runTaskTimerAsynchronously(Plugin plugin, BukkitRunnable task, long delay, long period)Deprecated.intBukkitScheduler.scheduleAsyncDelayedTask(Plugin plugin, Runnable task)Deprecated.This name is misleading, as it does not schedule "a sync" task, but rather, "an async" taskintBukkitScheduler.scheduleAsyncDelayedTask(Plugin plugin, Runnable task, long delay)Deprecated.This name is misleading, as it does not schedule "a sync" task, but rather, "an async" taskintBukkitScheduler.scheduleAsyncRepeatingTask(Plugin plugin, Runnable task, long delay, long period)Deprecated.This name is misleading, as it does not schedule "a sync" task, but rather, "an async" taskintBukkitScheduler.scheduleSyncDelayedTask(Plugin plugin, Runnable task)Schedules a once off task to occur as soon as possible.intBukkitScheduler.scheduleSyncDelayedTask(Plugin plugin, Runnable task, long delay)Schedules a once off task to occur after a delay.intBukkitScheduler.scheduleSyncDelayedTask(Plugin plugin, BukkitRunnable task)Deprecated.intBukkitScheduler.scheduleSyncDelayedTask(Plugin plugin, BukkitRunnable task, long delay)Deprecated.intBukkitScheduler.scheduleSyncRepeatingTask(Plugin plugin, Runnable task, long delay, long period)Schedules a repeating task.intBukkitScheduler.scheduleSyncRepeatingTask(Plugin plugin, BukkitRunnable task, long delay, long period)Deprecated.
BukkitRunnable.runTask(Plugin)