Remove "... data was saved to storage" messages

This commit is contained in:
Luck 2017-08-19 11:08:28 +02:00
parent a7ab0c6b36
commit b65d2262bf
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
2 changed files with 3 additions and 12 deletions

View File

@ -186,9 +186,7 @@ public abstract class SubCommand<T> extends Command<T, Void> {
messagingService.getUpdateBuffer().request();
}
if (success) {
Message.USER_SAVE_SUCCESS.send(sender);
} else {
if (!success) {
Message.USER_SAVE_ERROR.send(sender);
}
}
@ -207,9 +205,7 @@ public abstract class SubCommand<T> extends Command<T, Void> {
messagingService.getUpdateBuffer().request();
}
if (success) {
Message.GROUP_SAVE_SUCCESS.send(sender);
} else {
if (!success) {
Message.GROUP_SAVE_ERROR.send(sender);
}
}
@ -228,9 +224,7 @@ public abstract class SubCommand<T> extends Command<T, Void> {
messagingService.getUpdateBuffer().request();
}
if (success) {
Message.TRACK_SAVE_SUCCESS.send(sender);
} else {
if (!success) {
Message.TRACK_SAVE_ERROR.send(sender);
}
}

View File

@ -79,15 +79,12 @@ public enum Message {
*/
USER_NOT_FOUND("&bUser could not be found.", true),
USER_NOT_ONLINE("&bUser &a{0}&b is not online.", true),
USER_SAVE_SUCCESS("&7(User data was saved to storage)", true),
USER_SAVE_ERROR("There was an error whilst saving the user.", true),
GROUP_NOT_FOUND("&bGroup could not be found.", true),
GROUP_SAVE_SUCCESS("&7(Group data was saved to storage)", true),
GROUP_SAVE_ERROR("There was an error whilst saving the group.", true),
TRACK_NOT_FOUND("&bTrack could not be found.", true),
TRACK_SAVE_SUCCESS("&7(Track data was saved to storage)", true),
TRACK_SAVE_ERROR("There was an error whilst saving the track.", true),