refactor: use string UUIDs instead of int array when possible
This commit is contained in:
@@ -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"
|
||||
);
|
||||
|
||||
|
||||
@@ -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"
|
||||
);
|
||||
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user