An executor set to null will now use the plugin. Fixes BUKKIT-3127

This commit is contained in:
feildmaster
2012-12-09 00:19:55 -06:00
parent 8df7caf91f
commit f3dfe8bd01

View File

@@ -61,7 +61,7 @@ public final class PluginCommand extends Command implements PluginIdentifiableCo
* @param executor New executor to run
*/
public void setExecutor(CommandExecutor executor) {
this.executor = executor;
this.executor = executor == null ? owningPlugin : executor;
}
/**