Files
AllMusic/core/objs/message/MusicPlayObj.java
T
2025-04-14 11:06:57 +08:00

107 lines
3.7 KiB
Java

package com.coloryr.allmusic.server.core.objs.message;
public class MusicPlayObj {
public String stopPlaying;
public String emptyPlayingMusic;
public String nowPlay;
public String emptyPlay;
public ListMusicObj listMusic;
public String emptyCanPlay;
public String mute;
public String mute1;
public String mute2;
public String mute3;
public String switchMusic;
public String addMusic;
public String checkMusic;
public String musicInfo;
public String trail;
public String cancel;
public String error1;
public static MusicPlayObj make() {
MusicPlayObj obj = new MusicPlayObj();
obj.init();
return obj;
}
public boolean check() {
boolean res = stopPlaying == null;
if (emptyPlayingMusic == null)
res = true;
if (nowPlay == null)
res = true;
if (emptyPlay == null)
res = true;
if (listMusic == null || listMusic.check())
res = true;
if (emptyCanPlay == null)
res = true;
if (mute == null)
res = true;
if (mute1 == null)
res = true;
if (mute2 == null)
res = true;
if (mute3 == null)
res = true;
if (switchMusic == null)
res = true;
if (addMusic == null)
res = true;
if (checkMusic == null)
res = true;
if (musicInfo == null)
res = true;
if (trail == null)
res = true;
if (cancel == null)
res = true;
if (error1 == null)
res = true;
return res;
}
public void init() {
if (stopPlaying == null)
stopPlaying = "§d[AllMusic3]§e已停止你的音乐播放";
if (emptyPlayingMusic == null)
emptyPlayingMusic = "§d[AllMusic3]§e无正在播放的歌曲";
if (nowPlay == null)
nowPlay = "§d[AllMusic3]§e正在播放:" + PAL.musicName + " | " + PAL.musicAuthor
+ " by: " + PAL.player;
if (emptyPlay == null)
emptyPlay = "§d[AllMusic3]§e队列中无歌曲";
if (listMusic == null)
listMusic = ListMusicObj.make();
if (emptyCanPlay == null)
emptyCanPlay = "§d[AllMusic3]§c无法播放歌曲" + PAL.musicId + "可能该歌曲为VIP歌曲";
if (mute == null)
mute = "§d[AllMusic3]§e你不会再收到点歌了!想要再次参与点歌就点一首歌吧!或者再输入一次指令恢复";
if (mute1 == null)
mute1 = "§d[AllMusic3]§e你不会再收到空闲歌单点歌了,再输入一次指令恢复";
if (mute2 == null)
mute2 = "§d[AllMusic3]§e你将开始收到空闲歌单点歌";
if (mute3 == null)
mute3 = "§d[AllMusic3]§e你将开始收到点歌";
if (switchMusic == null)
switchMusic = "§d[AllMusic3]§e切换到玩家歌曲";
if (addMusic == null)
addMusic = "§d[AllMusic3]§e音乐列表添加" + PAL.musicName + " | " + PAL.musicAuthor
+ " | " + PAL.musicAl + " | " + PAL.musicAlia + " | by: " + PAL.player;
if (checkMusic == null)
checkMusic = "§d[AllMusic3]§e正在解析歌曲" + PAL.musicId;
if (musicInfo == null)
musicInfo = PAL.musicName + " | " + PAL.musicAuthor + " | " + PAL.musicAl
+ " | " + PAL.musicAlia + " | by: " + PAL.player;
if (trail == null)
trail = "§d[AllMusic3]§e该音乐为试听音乐";
if (cancel == null)
cancel = "§d[AllMusic3]§e播放被取消";
if (error1 == null)
error1 = "§d[AllMusic3]§c未知音乐类型";
}
}