mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-26 08:03:07 +00:00
fix
This commit is contained in:
1 parent
c8c3196183
commit
6f2f71a5d3
2 files changed
+9
-3
No files matched your search
@@ -50,8 +50,13 @@ public class PlayMusic {
|
||||
}
|
||||
public static void SendToOnePlayer(String data, String Player)
|
||||
{
|
||||
ProxiedPlayer players = ProxyServer.getInstance().getPlayer(Player);
|
||||
players.sendData("AudioBuffer", data.getBytes());
|
||||
try {
|
||||
ProxiedPlayer players = ProxyServer.getInstance().getPlayer(Player);
|
||||
players.sendData("AudioBuffer", data.getBytes());
|
||||
}catch(Exception e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
public static int Music_Time(String music) {
|
||||
try {
|
||||
|
||||
@@ -52,13 +52,14 @@ public class command extends Command {
|
||||
sender.sendMessage(new TextComponent("§d[ALLmusic]§c错误,这首歌已经在队列了"));
|
||||
return;
|
||||
}
|
||||
if(PlayMusic.stop.size() !=0 ) {
|
||||
if (PlayMusic.stop.size() != 0) {
|
||||
if (PlayMusic.stop.get(sender.getName()).equals("true") == true) {
|
||||
PlayMusic.stop.put(sender.getName(), "false");
|
||||
}
|
||||
}
|
||||
PlayMusic.playlist.put(String.valueOf(PlayMusic.All_music), music_id);
|
||||
PlayMusic.All_music++;
|
||||
sender.sendMessage(new TextComponent("§d[ALLmusic]§c点歌" + music_id + "成功"));
|
||||
ProxyServer.getInstance().broadcast(new TextComponent("§d[ALLmusic]§2" + sender.getName() +
|
||||
"点歌" + music_id));
|
||||
logs logs = new logs();
|
||||
|
||||
Reference in new issue
Block a user