package stream.flarebot.flarebot.commands.general;

import net.dv8tion.jda.core.JDA;
import net.dv8tion.jda.core.entities.Member;
import net.dv8tion.jda.core.entities.Message;
import net.dv8tion.jda.core.entities.TextChannel;
import net.dv8tion.jda.core.entities.User;
import org.apache.commons.lang.WordUtils;
import stream.flarebot.flarebot.FlareBot;
import stream.flarebot.flarebot.commands.Command;
import stream.flarebot.flarebot.commands.CommandType;
import stream.flarebot.flarebot.util.MessageUtils;

public class ShardInfoCommand implements Command {
    @Override
    public void onCommand(User sender, TextChannel channel, Message message, String[] args, Member member) {
        StringBuilder builder = new StringBuilder(String.format("```diff\nTotal: %d\n", FlareBot.getInstance().getClients().length));
        for (JDA jda : FlareBot.getInstance().getClients()) {
            switch (jda.getStatus()) {
                case CONNECTED:
                    builder.append(String.format("+ Shard ID: %s - %s\n" +
                            "+     Guild Count: %d\n", MessageUtils.getShardId(jda), WordUtils.capitalizeFully(jda.getStatus().toString().replace("_", " ")), jda.getGuilds().size()));
                    break;
                default:
                    builder.append(String.format("- Shard ID: %s - %s\n" +
                            "+     Guild Count: %d\n", MessageUtils.getShardId(jda), WordUtils.capitalizeFully(jda.getStatus().toString().replace("_", " ")), jda.getGuilds().size()));
            }
        }
        builder.append("```");
        channel.sendMessage(builder.toString()).queue();
    }

    @Override
    public String getCommand() {
        return "shardinfo";
    }

    @Override
    public String getDescription() {
        return "Shows info about a shard";
    }

    @Override
    public String getUsage() {
        return "{%}shardsinfo";
    }

    @Override
    public CommandType getType() {
        return CommandType.GENERAL;
    }
}

@@ -292,16 +292,22 @@
 ons.lang
+3.text
 .WordUti
@@ -894,14 +894,10 @@
     
-switch
+if
  (jd
@@ -913,33 +913,23 @@
 us()
-) %7B%0A                case 
+ == JDA.Status.
 CONN
@@ -933,22 +933,20 @@
 ONNECTED
-:%0A    
+) %7B%0A
         
@@ -1000,36 +1000,32 @@
 D: %25s - %25s%5Cn%22 +%0A
-    
                 
@@ -1204,52 +1204,17 @@
     
-        break;%0A                default:%0A    
+%7D else %7B%0A
     
@@ -1272,36 +1272,32 @@
 D: %25s - %25s%5Cn%22 +%0A
-    
                 
@@ -1572,16 +1572,17 @@
 ueue();%0A
+%0A
     %7D%0A%0A 

Use if instead of switch