@@ -54,29 +53,27 @@ public class SendMailCommand implements CommandHandler {
CommandHandler.sendMessage(sender,"The user with an id of '"+args.get(0)+"' does not exist");
return;
}
}
}
mailBeingConstructed.put(senderId,mailBuilder);
CommandHandler.sendMessage(sender,"Starting composition of message.\nPlease use `/sendmail <title>` to continue.\nYou can use `/sendmail stop` at any time");
CommandHandler.sendMessage(sender,"Message sent to user "+mailBuilder.recipient+"!");
}else{
...
...
@@ -90,37 +87,40 @@ public class SendMailCommand implements CommandHandler {
CommandHandler.sendMessage(sender,"Message composition not at final stage.\nPlease use `/sendmail "+getConstructionArgs(mailBuilder.constructionStage)+"` or `/sendmail stop` to cancel");
}
return;
case"help":
}
case"help"->{
CommandHandler.sendMessage(sender,"Please use `/sendmail "+getConstructionArgs(mailBuilder.constructionStage)+"`");
CommandHandler.sendMessage(sender,String.format("Attached %s of %s (level %s) to the message.\nContinue adding more items or use `/sendmail finish` to send the message.",amount,item,lvl));
}
}
break;
}
}
}else{
CommandHandler.sendMessage(sender,"Invalid arguments \n Please use `/sendmail "+getConstructionArgs(mailBuilder.constructionStage));
...
...
@@ -159,19 +160,25 @@ public class SendMailCommand implements CommandHandler {