mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
Allow certain commands to bypass queuing
This commit is contained in:
@ -222,12 +222,14 @@ public class FaweBukkit implements IFawe, Listener {
|
||||
@Override
|
||||
public void setupCommand(final String label, final FaweCommand cmd) {
|
||||
if (plugin instanceof JavaPlugin) {
|
||||
PluginCommand registered = ((JavaPlugin) plugin).getCommand(label);
|
||||
if (registered == null) {
|
||||
debug("Command not registered in plugin.yml: " + label);
|
||||
return;
|
||||
}
|
||||
registered.setExecutor(new BukkitCommand(cmd));
|
||||
TaskManager.IMP.task(() -> {
|
||||
PluginCommand registered = ((JavaPlugin) plugin).getCommand(label);
|
||||
if (registered == null) {
|
||||
debug("Command not registered in plugin.yml: " + label);
|
||||
return;
|
||||
}
|
||||
registered.setExecutor(new BukkitCommand(cmd));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,10 +8,6 @@ loadbefore: [WorldEdit,AsyncWorldEdit,AsyncWorldEditInjector,WorldGuard]
|
||||
load: STARTUP
|
||||
database: false
|
||||
#softdepend: [WorldGuard, PlotSquared, MCore, Factions, GriefPrevention, Residence, Towny, PlotMe, PreciousStones]
|
||||
commands:
|
||||
fcancel:
|
||||
description: "Cancel your edit"
|
||||
aliases: [fawecancel,/fcancel,/cancel,/fawecancel]
|
||||
permissions:
|
||||
fawe.plotsquared:
|
||||
default: true
|
||||
|
Reference in New Issue
Block a user