mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-24 01:19:49 +00:00
up
This commit is contained in:
1 parent
0bdf478fe5
commit
399e276926
53 files changed
+721
-378
No files matched your search
@@ -0,0 +1,24 @@
|
||||
package coloryr.allmusic.core.command;
|
||||
|
||||
import coloryr.allmusic.core.AllMusic;
|
||||
|
||||
public class CommandSearch implements ICommand {
|
||||
@Override
|
||||
public void ex(Object sender, String name, String[] args) {
|
||||
if (AllMusic.getConfig().NeedPermission &&
|
||||
AllMusic.side.checkPermission(name, "allmusic.search")) {
|
||||
AllMusic.side.sendMessage(sender, AllMusic.getMessage().Search.NoPer);
|
||||
return;
|
||||
}
|
||||
if (CommandEX.checkMoney(sender, name, AllMusic.getConfig().SearchCost)) {
|
||||
return;
|
||||
}
|
||||
if (CommandEX.cost(sender, name, AllMusic.getConfig().SearchCost,
|
||||
AllMusic.getMessage().Cost.Search)) {
|
||||
return;
|
||||
}
|
||||
|
||||
AllMusic.side.sendMessage(sender, AllMusic.getMessage().Search.StartSearch);
|
||||
CommandEX.searchMusic(sender, name, args, false);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user