mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Cache nodes single core
This commit is contained in:
parent
76bf764262
commit
548ed4a1f0
@ -28,6 +28,7 @@ import com.volmit.iris.util.decree.virtual.VirtualDecreeCommand;
|
||||
import com.volmit.iris.util.format.C;
|
||||
import com.volmit.iris.util.plugin.IrisService;
|
||||
import com.volmit.iris.util.plugin.VolmitSender;
|
||||
import com.volmit.iris.util.scheduling.J;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
||||
|
||||
@ -40,7 +41,7 @@ public class CommandSVC implements IrisService, DecreeSystem {
|
||||
@Override
|
||||
public void onEnable() {
|
||||
Iris.instance.getCommand("iris").setExecutor(this);
|
||||
getRoot().cacheAll();
|
||||
J.a(() -> getRoot().cacheAll());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -109,7 +109,7 @@ public class VirtualDecreeCommand {
|
||||
VolmitSender sender = new VolmitSender(new CommandDummy());
|
||||
|
||||
if (isNode()) {
|
||||
J.a(() -> sender.sendDecreeHelpNode(this));
|
||||
sender.sendDecreeHelpNode(this);
|
||||
}
|
||||
|
||||
for (VirtualDecreeCommand j : nodes) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user