From 96d519f84aa10356cbf4704af303c5dd5ce0402f Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Thu, 20 May 2021 00:18:07 +0200 Subject: [PATCH] Use updated jdk features --- .../invtweaks/command/SearchCommandExecutor.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/dev/w1zzrd/invtweaks/command/SearchCommandExecutor.java b/src/dev/w1zzrd/invtweaks/command/SearchCommandExecutor.java index 42021e3..9f48e7f 100644 --- a/src/dev/w1zzrd/invtweaks/command/SearchCommandExecutor.java +++ b/src/dev/w1zzrd/invtweaks/command/SearchCommandExecutor.java @@ -1,7 +1,6 @@ package dev.w1zzrd.invtweaks.command; import dev.w1zzrd.invtweaks.InvTweaksPlugin; -import dev.w1zzrd.invtweaks.listener.TabCompletionListener; import dev.w1zzrd.invtweaks.serialization.SearchConfig; import org.bukkit.*; import org.bukkit.block.*; @@ -18,7 +17,7 @@ import java.util.*; import java.util.logging.Logger; import static dev.w1zzrd.invtweaks.command.CommandUtils.assertTrue; -import static dev.w1zzrd.invtweaks.listener.TabCompletionListener.*; +import static dev.w1zzrd.invtweaks.listener.TabCompletionListener.getMaterialMatching; /** * Handler for executions of /search command @@ -99,8 +98,7 @@ public class SearchCommandExecutor extends ConfigurableCommandExecutor it.getKey().toString().equals(stringKey)).findFirst().orElse(null); - } }