mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-21 04:32:34 +00:00
up
This commit is contained in:
1 parent
e6b79881e8
commit
4352591147
4 files changed
+6
-7
No files matched your search
@@ -26,14 +26,14 @@ public class EventBC implements Listener {
|
||||
new Thread(() -> {
|
||||
ProxiedPlayer player = e.getPlayer();
|
||||
try {
|
||||
Thread.sleep(500);
|
||||
Thread.sleep(2000);
|
||||
String data = "[Check]";
|
||||
byte[] bytes = data.getBytes(StandardCharsets.UTF_8);
|
||||
ByteBuf buf = Unpooled.buffer(bytes.length + 1);
|
||||
buf.writeByte(666);
|
||||
buf.writeBytes(bytes);
|
||||
player.sendData(ALLMusic.channel, buf.array());
|
||||
Thread.sleep(2000);
|
||||
Thread.sleep(5000);
|
||||
} catch (Exception ex) {
|
||||
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ public class EventBukkit implements Listener {
|
||||
public void onPlayerLogin(final PlayerLoginEvent event) {
|
||||
new Thread(() -> {
|
||||
try {
|
||||
Thread.sleep(500);
|
||||
Thread.sleep(2000);
|
||||
Player player = event.getPlayer();
|
||||
try {
|
||||
String data = "[Check]";
|
||||
@@ -37,7 +37,7 @@ public class EventBukkit implements Listener {
|
||||
ALLMusic.log.warning("§c数据发送发生错误");
|
||||
e.printStackTrace();
|
||||
}
|
||||
Thread.sleep(2000);
|
||||
Thread.sleep(5000);
|
||||
if (!ALLMusic.haveMOD.contains(player.getName())) {
|
||||
player.sendMessage(ALLMusic.Message.getCheck().getNoMOD());
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public class ShowOBJ {
|
||||
.replace("%TLyric%", tlyric);
|
||||
}
|
||||
}
|
||||
data = ALLMusic.Message.getLyric().getTData();
|
||||
data = ALLMusic.Message.getLyric().getData();
|
||||
return data.replace("%Lyric%", lyric);
|
||||
}
|
||||
}
|
||||
@@ -93,7 +93,6 @@ class PlayGo extends Thread {
|
||||
e.printStackTrace();
|
||||
}
|
||||
} else {
|
||||
clear();
|
||||
PlayMusic.NowPlayMusic = PlayMusic.getMusic(0);
|
||||
PlayMusic.remove(0);
|
||||
|
||||
@@ -149,11 +148,11 @@ class PlayGo extends Thread {
|
||||
ALLMusic.log.warning("§c歌曲播放出现错误");
|
||||
e.printStackTrace();
|
||||
}
|
||||
clear();
|
||||
} else {
|
||||
String data = ALLMusic.Message.getMusicPlay().getNoCanPlay();
|
||||
ALLMusic.Side.bqt(data.replace("%MusicID%", PlayMusic.NowPlayMusic.getID()));
|
||||
}
|
||||
clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user