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 :( By: stevenh <steven.hartland@multiplay.co.uk>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user