Skip to content

Commit

Permalink
Remove test sub command
Browse files Browse the repository at this point in the history
  • Loading branch information
RappyTV committed Jul 7, 2023
1 parent fc8fc83 commit b3df98b
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions core/src/main/java/com/rappytv/toolwarn/commands/TbwCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.rappytv.toolwarn.config.TbwConfiguration;
import com.rappytv.toolwarn.util.ToolType;
import com.rappytv.toolwarn.util.Util;
import com.rappytv.toolwarn.util.WarnSound;
import net.labymod.api.Laby;
import net.labymod.api.client.chat.command.Command;
import net.labymod.api.client.entity.player.ClientPlayer;
Expand All @@ -24,24 +23,6 @@ public TbwCommand(TbwAddon addon) {
public boolean execute(String prefix, String[] arguments) {
if(arguments.length < 1) {
Util.msg(I18n.translate("toolwarn.command.invalidSubcommand"), true);
} else if(arguments[0].equalsIgnoreCase("test")) {
if(arguments.length > 1 && arguments[1].equalsIgnoreCase("last")) {
if(config.sounds().enabled().get() && config.sounds().lastHitSound().get() != WarnSound.NONE) {
Laby.labyAPI().minecraft().sounds().playSound(
config.sounds().lastHitSound().get().getResourceLocation(),
1f,
1f
);
}
} else {
if(config.sounds().enabled().get() && config.sounds().warnSound().get() != WarnSound.NONE) {
Laby.labyAPI().minecraft().sounds().playSound(
config.sounds().warnSound().get().getResourceLocation(),
1f,
1f
);
}
}
} else if(arguments[0].equalsIgnoreCase("disable")) {
config.enabled().set(false);

Expand Down

0 comments on commit b3df98b

Please sign in to comment.