Revert "Added tab completion"
This reverts commit fe327fbd76
.
# Conflicts:
# src/main/java/net/minecraftforge/server/command/ForgeCommand.java
This commit is contained in:
parent
9c003fcb15
commit
1a97d74939
1 changed files with 0 additions and 25 deletions
|
@ -65,31 +65,6 @@ public class ForgeCommand extends CommandBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<String> getTabCompletionOptions(MinecraftServer server, ICommandSender sender, String[] args, BlockPos pos)
|
|
||||||
{
|
|
||||||
if (args.length == 1)
|
|
||||||
{
|
|
||||||
return getListOfStringsMatchingLastWord(args, "tps", "track");
|
|
||||||
}
|
|
||||||
else if (args.length == 2)
|
|
||||||
{
|
|
||||||
if ("tps".equals(args[0])) {
|
|
||||||
ArrayList list = new ArrayList();
|
|
||||||
for (Integer l : server.worldTickTimes.keySet())
|
|
||||||
{
|
|
||||||
list.add(l.toString());
|
|
||||||
}
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
else if ("track".equals(args[0]))
|
|
||||||
{
|
|
||||||
return getListOfStringsMatchingLastWord(args, "te");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void handleTracking(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException
|
private void handleTracking(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException
|
||||||
{
|
{
|
||||||
if (args.length != 3)
|
if (args.length != 3)
|
||||||
|
|
Loading…
Reference in a new issue