diff options
Diffstat (limited to 'me/Danker/utils/CommandUtils.java')
-rw-r--r-- | me/Danker/utils/CommandUtils.java | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/me/Danker/utils/CommandUtils.java b/me/Danker/utils/CommandUtils.java deleted file mode 100644 index 7b10ad5..0000000 --- a/me/Danker/utils/CommandUtils.java +++ /dev/null @@ -1,23 +0,0 @@ -package me.Danker.utils; - -import java.util.ArrayList; -import java.util.List; - -import net.minecraft.client.Minecraft; -import net.minecraft.entity.player.EntityPlayer; - -public class CommandUtils { - public static List<String> getMatchingPlayers(String arg) { - List<String> matchingPlayers = new ArrayList<>(); - List<EntityPlayer> players = Minecraft.getMinecraft().theWorld.playerEntities; - - for (EntityPlayer player : players) { - String playerName = player.getName(); - if (playerName.toLowerCase().startsWith(arg.toLowerCase())) { - matchingPlayers.add(playerName); - } - } - - return matchingPlayers; - } -} |