From 92b0a7959090b56ab313f77143ffd07a1483ea71 Mon Sep 17 00:00:00 2001 From: bowser0000 Date: Mon, 3 Aug 2020 17:29:44 -0400 Subject: Add session option for every tracker Session tracker counts loot from current Minecraft session. CommandUtils has been renamed to Utils. --- me/Danker/utils/CommandUtils.java | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 me/Danker/utils/CommandUtils.java (limited to 'me/Danker/utils/CommandUtils.java') 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 getMatchingPlayers(String arg) { - List matchingPlayers = new ArrayList<>(); - List players = Minecraft.getMinecraft().theWorld.playerEntities; - - for (EntityPlayer player : players) { - String playerName = player.getName(); - if (playerName.toLowerCase().startsWith(arg.toLowerCase())) { - matchingPlayers.add(playerName); - } - } - - return matchingPlayers; - } -} -- cgit