@@ -55,28 +54,26 @@ public class SendMailCommand implements CommandHandler {
...
@@ -55,28 +54,26 @@ public class SendMailCommand implements CommandHandler {
return;
return;
}
}
}
}
}
mailBeingConstructed.put(senderId,mailBuilder);
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,"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+"!");
CommandHandler.sendMessage(sender,"Message sent to user "+mailBuilder.recipient+"!");
}else{
}else{
...
@@ -90,37 +87,40 @@ public class SendMailCommand implements CommandHandler {
...
@@ -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");
CommandHandler.sendMessage(sender,"Message composition not at final stage.\nPlease use `/sendmail "+getConstructionArgs(mailBuilder.constructionStage)+"` or `/sendmail stop` to cancel");
}
}
return;
return;
case"help":
}
case"help"->{
CommandHandler.sendMessage(sender,"Please use `/sendmail "+getConstructionArgs(mailBuilder.constructionStage)+"`");
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));
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{
}else{
CommandHandler.sendMessage(sender,"Invalid arguments \n Please use `/sendmail "+getConstructionArgs(mailBuilder.constructionStage));
CommandHandler.sendMessage(sender,"Invalid arguments \n Please use `/sendmail "+getConstructionArgs(mailBuilder.constructionStage));
...
@@ -159,21 +160,27 @@ public class SendMailCommand implements CommandHandler {
...
@@ -159,21 +160,27 @@ public class SendMailCommand implements CommandHandler {