Renamed IExecutor -> CommandExecutor and fixed SERVER_COMMAND doc

By: stevenh <steven.hartland@multiplay.co.uk>
This commit is contained in:
Bukkit/Spigot
2011-01-29 21:17:36 +00:00
parent e56db60b83
commit 6f4cf0388b
10 changed files with 65 additions and 70 deletions

View File

@ -231,14 +231,15 @@ public final class SimplePluginManager implements PluginManager {
}
/**
* Registers the given event to the specified listener
* Registers the given event to the specified listener using a directly passed EventExecutor
*
* @param type EventType to register
* @param listener PlayerListener to register
* @param executor EventExecutor to register
* @param priority Priority of this event
* @param plugin Plugin to register
*/
public void registerEvent(Event.Type type, Listener listener, IExecutor executor, Priority priority, Plugin plugin) {
public void registerEvent(Event.Type type, Listener listener, EventExecutor executor, Priority priority, Plugin plugin) {
getEventListeners( type ).offer(new RegisteredListener(listener, executor, priority, plugin));
}