mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-13 20:44:12 +00:00
71 lines
2.4 KiB
Java
71 lines
2.4 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 switchMusic;
|
|
public String addMusic;
|
|
public String checkMusic;
|
|
public String musicInfo;
|
|
public String trail;
|
|
public String cancel;
|
|
|
|
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 (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;
|
|
|
|
return res;
|
|
}
|
|
|
|
public void init() {
|
|
stopPlaying = "§d[AllMusic3]§e已停止你的音乐播放";
|
|
emptyPlayingMusic = "§d[AllMusic3]§e无正在播放的歌曲";
|
|
nowPlay = "§d[AllMusic3]§e正在播放:%MusicName% | %MusicAuthor% by:%PlayerName%";
|
|
emptyPlay = "§d[AllMusic3]§e队列中无歌曲";
|
|
listMusic = ListMusicObj.make();
|
|
emptyCanPlay = "§d[AllMusic3]§c无法播放歌曲%MusicID%可能该歌曲为VIP歌曲";
|
|
mute = "§d[AllMusic3]§e你不会再收到点歌了!想要再次参与点歌就点一首歌吧!";
|
|
switchMusic = "§d[AllMusic3]§e切换到玩家歌曲";
|
|
addMusic = "§d[AllMusic3]§e音乐列表添加%MusicName% | %MusicAuthor% | %MusicAl% | %MusicAlia%";
|
|
checkMusic = "§d[AllMusic3]§e正在解析歌曲%MusicID%";
|
|
musicInfo = "%MusicName% | %MusicAuthor% | %MusicAl% | %MusicAlia% | by: %PlayerName%";
|
|
trail = "§d[AllMusic3]§e该音乐为试听音乐";
|
|
cancel = "§d[AllMusic3]§e播放被取消";
|
|
}
|
|
}
|