refactor: use fastutil 💨💨💨

i hope i didn't miss some things
This commit is contained in:
ChomeNS
2025-05-02 15:00:31 +07:00
parent a3ccacf758
commit a01f749577
24 changed files with 86 additions and 65 deletions

View File

@@ -1,5 +1,6 @@
package me.chayapak1.chomens_bot.plugins;
import it.unimi.dsi.fastutil.objects.ObjectList;
import me.chayapak1.chomens_bot.Bot;
import me.chayapak1.chomens_bot.command.Command;
import me.chayapak1.chomens_bot.command.CommandContext;
@@ -20,7 +21,7 @@ import java.util.Arrays;
import java.util.List;
public class CommandHandlerPlugin implements Listener {
public static final List<Command> COMMANDS = List.of(
public static final List<Command> COMMANDS = ObjectList.of(
new CommandBlockCommand(),
new CowsayCommand(),
new EchoCommand(),