diff --git a/core/src/main/java/com/sekwah/advancedportals/core/tags/TriggerBlockTag.java b/core/src/main/java/com/sekwah/advancedportals/core/tags/TriggerBlockTag.java index 3d859b95..4cb526f4 100644 --- a/core/src/main/java/com/sekwah/advancedportals/core/tags/TriggerBlockTag.java +++ b/core/src/main/java/com/sekwah/advancedportals/core/tags/TriggerBlockTag.java @@ -40,9 +40,12 @@ public List autoComplete(String argData) { System.out.println("Auto complete"); System.out.println(argData); - var triggerBlocks = serverContainer.getCommonTriggerBlocks().stream().filter(block -> block.contains(argData)).toList(); + var triggerBlocks = serverContainer.getCommonTriggerBlocks() + .stream() + .filter(block -> block.contains(argData)) + .toList(); - if(triggerBlocks.isEmpty()) { + if (triggerBlocks.isEmpty()) { return serverContainer.getAllTriggerBlocks(); } diff --git a/spigot/src/main/java/com/sekwah/advancedportals/spigot/connector/container/SpigotServerContainer.java b/spigot/src/main/java/com/sekwah/advancedportals/spigot/connector/container/SpigotServerContainer.java index d2f32fe8..e53109fe 100644 --- a/spigot/src/main/java/com/sekwah/advancedportals/spigot/connector/container/SpigotServerContainer.java +++ b/spigot/src/main/java/com/sekwah/advancedportals/spigot/connector/container/SpigotServerContainer.java @@ -20,13 +20,17 @@ public class SpigotServerContainer implements ServerContainer { private CoreListeners coreListeners; private final Server server; // Create an array of items - private final List commonTriggerBlockList = Arrays.asList( - Material.WATER, Material.LAVA, Material.AIR, Material.NETHER_PORTAL, Material.END_GATEWAY, Material.END_PORTAL).stream().map(Enum::name).toList(); + private final List commonTriggerBlockList = + Arrays + .asList(Material.WATER, Material.LAVA, Material.AIR, + Material.NETHER_PORTAL, Material.END_GATEWAY, + Material.END_PORTAL) + .stream() + .map(Enum::name) + .toList(); private final List fullTriggerBlockList = - Arrays.stream(Material.values()) - .map(Enum::name) - .toList(); + Arrays.stream(Material.values()).map(Enum::name).toList(); public SpigotServerContainer(Server server) { this.server = server; @@ -96,7 +100,8 @@ public void registerIncomingChannel(String channel) { } @Override - public void dispatchCommand(UUID uuid, String command, CommandTag.CommandLevel commandLevel) { + public void dispatchCommand(UUID uuid, String command, + CommandTag.CommandLevel commandLevel) { Player player = server.getPlayer(uuid); switch (commandLevel) { case CONSOLE: