Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ minecraft {
sourceSets.main.resources { srcDir 'src/generated/resources' }

group = 'me.ordalca.combocommands'
version = '1.0.1'
version = '1.0.2'

sourceCompatibility = 1.8
targetCompatibility = 1.8
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/me/ordalca/combocommands/init/ComboCommand.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package me.ordalca.combocommands.init;

import com.google.common.collect.Lists;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import com.pixelmonmod.pixelmon.api.command.PixelmonCommandUtils;
Expand All @@ -8,9 +9,12 @@
import net.minecraft.command.CommandException;
import net.minecraft.command.CommandSource;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.fml.server.ServerLifecycleHooks;

import java.util.List;
import java.util.Locale;


Expand Down Expand Up @@ -45,4 +49,15 @@ public void execute(CommandSource sender, String[] args) throws CommandException
PixelmonCommandUtils.sendMessage(sender, "Catch combo setting failed.");
}
}

@Override
public List<String> getTabCompletions(MinecraftServer server, CommandSource sender, String[] args, BlockPos pos) {
if (args.length == 1) {
return PixelmonCommandUtils.tabCompleteUsernames();
} else if (args.length == 2) {
return PixelmonCommandUtils.tabCompletePokemon();
} else {
return Lists.newArrayList();
}
}
}
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ license="MIT"

[[mods]]
modId="combocommands"
version="1.0.0"
version="1.0.2"
displayName="ComboCommands"
displayURL="https://github.com/Ordalca/ComboCommands"
credits="Ordalca"
credits="Ordalca & BeeLeDev"
authors="Ordalca"
description='''
Mod adding commands related to Capture Combos.
Expand Down