mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-20 01:49:35 +00:00
测试
This commit is contained in:
1 parent
8c50308ceb
commit
29b99ea4f0
2 files changed
+9
-8
No files matched your search
+2
-2
@@ -1,6 +1,6 @@
|
||||
#Sun Dec 10 00:57:26 CST 2017
|
||||
#Sun Mar 24 03:50:39 CST 2019
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip
|
||||
@@ -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