Sort commands alphabetically
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bea 2022-11-20 06:05:07 +01:00
parent f156727413
commit c6ee0f3ae1

View File

@ -15,10 +15,10 @@ public class SlashCommandListener extends ListenerAdapter
public void onSlashCommandInteraction(@NotNull SlashCommandInteractionEvent event) public void onSlashCommandInteraction(@NotNull SlashCommandInteractionEvent event)
{ {
switch (event.getName().toLowerCase()) { switch (event.getName().toLowerCase()) {
case "ping" -> new PingCommand(event);
case "die" -> new DieCommand(event);
case "coinflip" -> new CoinFlipCommand(event);
case "clear" -> new ClearChatCommand(event); case "clear" -> new ClearChatCommand(event);
case "coinflip" -> new CoinFlipCommand(event);
case "die" -> new DieCommand(event);
case "ping" -> new PingCommand(event);
} }
} }
} }