mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-25 02:54:22 +00:00
测试
This commit is contained in:
1 parent
8c50308ceb
commit
29b99ea4f0
2 files changed
+9
-8
No files matched your search
@@ -18,7 +18,11 @@ public class command extends Command {
|
||||
}
|
||||
|
||||
public void execute(CommandSender sender, String[] args) {
|
||||
if (args[0].equalsIgnoreCase("help")) {
|
||||
if(args.length == 0) {
|
||||
sender.sendMessage(new TextComponent("§d[ALLmusic_BC]§c错误,请使用/music help 获取帮助"));
|
||||
return;
|
||||
}
|
||||
else if (args[0].equalsIgnoreCase("help")) {
|
||||
sender.sendMessage(new TextComponent("§d[ALLmusic_BC]§2帮助手册"));
|
||||
sender.sendMessage(new TextComponent("§d[ALLmusic_BC]§2使用/music play [音乐ID] 来点歌"));
|
||||
sender.sendMessage(new TextComponent("§d[ALLmusic_BC]§2使用/music stop 停止播放歌曲"));
|
||||
@@ -26,8 +30,8 @@ public class command extends Command {
|
||||
sender.sendMessage(new TextComponent("§d[ALLmusic_BC]§2使用/music vote 投票切歌"));
|
||||
return;
|
||||
}
|
||||
if (args[0].equalsIgnoreCase("play")) {
|
||||
if(args.length<1){
|
||||
else if (args[0].equalsIgnoreCase("play")) {
|
||||
if(args.length < 1){
|
||||
sender.sendMessage(new TextComponent("§d[ALLmusic_BC]§c错误,请输入歌曲ID"));
|
||||
return;
|
||||
}
|
||||
@@ -39,9 +43,6 @@ public class command extends Command {
|
||||
sender.sendMessage(new TextComponent("§d[ALLmusic_BC]§c错误,请输入歌曲数字ID"));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(new TextComponent("§d[ALLmusic_BC]§c错误,请使用/music help 获取帮助"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user