diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-08-03 17:29:44 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-08-03 17:29:44 -0400 |
commit | 92b0a7959090b56ab313f77143ffd07a1483ea71 (patch) | |
tree | b21d11bba974978d3ab03c18120c4d17c794da93 /me/Danker/utils/CommandUtils.java | |
parent | 0243a46401f7654be2b61457880681fb027271bf (diff) | |
download | SkyblockMod-92b0a7959090b56ab313f77143ffd07a1483ea71.tar.gz SkyblockMod-92b0a7959090b56ab313f77143ffd07a1483ea71.tar.bz2 SkyblockMod-92b0a7959090b56ab313f77143ffd07a1483ea71.zip |
Add session option for every tracker
Session tracker counts loot from current Minecraft session. CommandUtils has been renamed to Utils.
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; - } -} |