refactor: use string UUIDs instead of int array when possible

This commit is contained in:
ChomeNS
2025-03-05 10:54:18 +07:00
parent 0a70b17c6f
commit 76034805a0
3 changed files with 3 additions and 4 deletions

View File

@@ -9,7 +9,6 @@ import me.chayapak1.chomens_bot.data.mail.Mail;
import me.chayapak1.chomens_bot.data.player.PlayerEntry;
import me.chayapak1.chomens_bot.plugins.DatabasePlugin;
import me.chayapak1.chomens_bot.util.ColorUtilities;
import me.chayapak1.chomens_bot.util.UUIDUtilities;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.JoinConfiguration;
import net.kyori.adventure.text.event.HoverEvent;
@@ -69,7 +68,7 @@ public class MailCommand extends Command {
context.checkOverloadArgs(2);
final CompletableFuture<String> future = bot.query.entity(
UUIDUtilities.selector(context.sender.profile.getId()),
context.sender.profile.getIdAsString(),
"SelectedItem.components.minecraft:custom_data.message"
);

View File

@@ -184,7 +184,7 @@ public class MusicCommand extends Command {
final Bot bot = context.bot;
final CompletableFuture<String> future = bot.query.entity(
UUIDUtilities.selector(context.sender.profile.getId()),
context.sender.profile.getIdAsString(),
"SelectedItem.tag.SongItemData.SongData"
);

View File

@@ -60,7 +60,7 @@ public class TeamJoinerPlugin extends TickPlugin.Listener {
}
private void joinTeam () {
bot.core.run("minecraft:team join " + teamName + " " + UUIDUtilities.selector(bot.profile.getId()));
bot.core.run("minecraft:team join " + teamName + " " + bot.profile.getIdAsString());
}
private void excludeOthers () {