aboutsummaryrefslogtreecommitdiff
path: root/me/Danker/utils/CommandUtils.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-08-03 17:29:44 -0400
committerbowser0000 <bowser0000@gmail.com>2020-08-03 17:29:44 -0400
commit92b0a7959090b56ab313f77143ffd07a1483ea71 (patch)
treeb21d11bba974978d3ab03c18120c4d17c794da93 /me/Danker/utils/CommandUtils.java
parent0243a46401f7654be2b61457880681fb027271bf (diff)
downloadSkyblockMod-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.java23
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;
- }
-}