File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/main/java/org/mvplugins/multiverse/core/utils Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 33import java .util .ArrayList ;
44import java .util .List ;
55import java .util .UUID ;
6- import java .util .regex .Pattern ;
76import java .util .stream .Collectors ;
87
98import com .dumptruckman .minecraft .util .Logging ;
109import com .google .common .base .Strings ;
1110import org .bukkit .Bukkit ;
1211import org .bukkit .command .CommandSender ;
1312import org .bukkit .entity .Player ;
13+ import org .jetbrains .annotations .ApiStatus ;
1414import org .jetbrains .annotations .NotNull ;
1515import org .jetbrains .annotations .Nullable ;
1616
@@ -112,7 +112,16 @@ public final class PlayerFinder {
112112 return playerResults ;
113113 }
114114
115- private static boolean isSelector (@ NotNull String playerIdentifier ) {
115+ /**
116+ * Check if the player identifier is a selector.
117+ *
118+ * @param playerIdentifier An identifier of name, UUID or selector.
119+ * @return True if the identifier is a selector, else false.
120+ *
121+ * @since 5.4
122+ */
123+ @ ApiStatus .AvailableSince ("5.4" )
124+ public static boolean isSelector (@ NotNull String playerIdentifier ) {
116125 return VANILLA_SELECTORS .stream ().anyMatch (playerIdentifier ::startsWith );
117126 }
118127
You can’t perform that action at this time.
0 commit comments