fix rtp text + the song thing

This commit is contained in:
Chayapak 2023-09-10 19:32:11 +07:00
parent d6aa60a778
commit 2ff5eb9b52
2 changed files with 3 additions and 2 deletions

View file

@ -37,9 +37,9 @@ public class RandomTeleportCommand extends Command {
return Component.empty()
.append(Component.text("Teleporting "))
.append(Component.text(sender.profile.getName()).color(ColorUtilities.getColorByString(bot.config.colorPalette.username)))
.append(Component.text(" to ").color(NamedTextColor.WHITE))
.append(Component.text(" to "))
.append(Component.text(stringPosition).color(NamedTextColor.GREEN))
.append(Component.text("...").color(NamedTextColor.WHITE))
.append(Component.text("..."))
.color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor));
}
}

View file

@ -84,6 +84,7 @@ public class Song {
*/
public void play () {
if (paused) {
if (loopPosition != 200) bot.music.loop = Loop.CURRENT;
paused = false;
startTime = System.currentTimeMillis() - time;
}