Show confirmation after note is sent

This commit is contained in:
P0nk
2022-12-27 12:31:36 +01:00
parent 4731c0c60d
commit 37a9a4121f
4 changed files with 21 additions and 6 deletions

View File

@@ -43,6 +43,12 @@ public class NoteService {
}
private boolean send(Note note) {
// TODO: handle the following cases (originally listed at PacketCreator#noteError)
/*
* 0 = Player online, use whisper
* 1 = Check player's name
* 2 = Receiver inbox full
*/
try {
noteDao.save(note);
return true;