Refactored event calling so its front loading avoiding the lookup for each event call.

This now uses an annoymous class implementing IExecutor that facilitates direct event method handler calling

Changed commands from being executed exclusively by a player to by a CommandSender to facilitate external command callers such as rcon

Fixed CustomEventListener

Merged in additional events

Added getFullName to PluginDescriptionFile which returns the combination of Name and Version

There's also a few bits of reformatting as it seems someones been editing with either tabs or dos eol :(
This commit is contained in:
stevenh
2011-01-29 16:23:56 +00:00
parent 6366ed0c6d
commit cc404ced12
18 changed files with 534 additions and 361 deletions

View File

@@ -77,6 +77,15 @@ public final class PluginDescriptionFile {
return version;
}
/**
* Returns the name of a plugin including the version
*
* @return String name
*/
public String getFullName() {
return name + " v" + version;
}
/**
* Returns the main class for a plugin
*
@@ -85,7 +94,7 @@ public final class PluginDescriptionFile {
public String getMain() {
return main;
}
public Object getCommands() {
return commands;
}