Revert "Changed forge command tab completion to use getListOfStringsMatchingLastWord()"

This reverts commit 6a299a483a.

# Conflicts:
#	src/main/java/net/minecraftforge/server/command/ForgeCommand.java
This commit is contained in:
cpw 2016-06-22 23:31:48 -04:00
parent dd384a91af
commit 9c003fcb15

View file

@ -1,6 +1,8 @@
package net.minecraftforge.server.command; package net.minecraftforge.server.command;
import java.text.DecimalFormat; import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
import net.minecraft.command.CommandBase; import net.minecraft.command.CommandBase;
@ -73,7 +75,12 @@ public class ForgeCommand extends CommandBase {
else if (args.length == 2) else if (args.length == 2)
{ {
if ("tps".equals(args[0])) { if ("tps".equals(args[0])) {
return getListOfStringsMatchingLastWord(args, server.worldTickTimes.keySet()); ArrayList list = new ArrayList();
for (Integer l : server.worldTickTimes.keySet())
{
list.add(l.toString());
}
return list;
} }
else if ("track".equals(args[0])) else if ("track".equals(args[0]))
{ {