mirror of
https://github.com/Coooookies/Grasscutter-MeaMailPlus.git
synced 2024-11-22 01:25:33 +00:00
fix: args error
This commit is contained in:
parent
c54fe151f7
commit
21c23459ee
@ -48,6 +48,15 @@ public class PluginCommand implements CommandHandler {
|
|||||||
MailCore.sendMailToAllPlayers(template);
|
MailCore.sendMailToAllPlayers(template);
|
||||||
CommandHandler.sendMessage(sender, "Mail Sended!");
|
CommandHandler.sendMessage(sender, "Mail Sended!");
|
||||||
}
|
}
|
||||||
|
case "sendallonline" -> {
|
||||||
|
if (template == null) {
|
||||||
|
CommandHandler.sendMessage(sender, "Invalid template id.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
MailCore.sendMailToAllPlayers(template, 0, true);
|
||||||
|
CommandHandler.sendMessage(sender, "Mail Sended!");
|
||||||
|
}
|
||||||
default -> CommandHandler.sendMessage(sender, "Invalid args.");
|
default -> CommandHandler.sendMessage(sender, "Invalid args.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -100,8 +109,8 @@ public class PluginCommand implements CommandHandler {
|
|||||||
String[] helpMap = new String[]{
|
String[] helpMap = new String[]{
|
||||||
"Send Mail:",
|
"Send Mail:",
|
||||||
" /meamail send <templateId> <uid>",
|
" /meamail send <templateId> <uid>",
|
||||||
" /meamail sendall <templateId> <minLevel>",
|
" /meamail sendall <templateId> [minLevel]",
|
||||||
" /meamail sendallonline <templateId> <minLevel>",
|
" /meamail sendallonline <templateId> [minLevel]",
|
||||||
// " /meamail welcomemail <uid>",
|
// " /meamail welcomemail <uid>",
|
||||||
// " /meamail dailymail <uid>",
|
// " /meamail dailymail <uid>",
|
||||||
// " /meamail initialmail <uid>",
|
// " /meamail initialmail <uid>",
|
||||||
|
Loading…
Reference in New Issue
Block a user