mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 09:17:36 +01:00
An executor set to null will now use the plugin. Fixes BUKKIT-3127
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
parent
7536c357fc
commit
4cc9a1bec4
@ -61,7 +61,7 @@ public final class PluginCommand extends Command implements PluginIdentifiableCo
|
|||||||
* @param executor New executor to run
|
* @param executor New executor to run
|
||||||
*/
|
*/
|
||||||
public void setExecutor(CommandExecutor executor) {
|
public void setExecutor(CommandExecutor executor) {
|
||||||
this.executor = executor;
|
this.executor = executor == null ? owningPlugin : executor;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user