From b65d2262bf6a7ca2abe99fdda4f5f3f3f2dcc949 Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 19 Aug 2017 11:08:28 +0200 Subject: [PATCH] Remove "... data was saved to storage" messages --- .../common/commands/abstraction/SubCommand.java | 12 +++--------- .../me/lucko/luckperms/common/locale/Message.java | 3 --- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/abstraction/SubCommand.java b/common/src/main/java/me/lucko/luckperms/common/commands/abstraction/SubCommand.java index bce94c6d9..c86673c00 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/abstraction/SubCommand.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/abstraction/SubCommand.java @@ -186,9 +186,7 @@ public abstract class SubCommand extends Command { 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 extends Command { 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 extends Command { messagingService.getUpdateBuffer().request(); } - if (success) { - Message.TRACK_SAVE_SUCCESS.send(sender); - } else { + if (!success) { Message.TRACK_SAVE_ERROR.send(sender); } } diff --git a/common/src/main/java/me/lucko/luckperms/common/locale/Message.java b/common/src/main/java/me/lucko/luckperms/common/locale/Message.java index 54f0aaca0..2a29db1ce 100644 --- a/common/src/main/java/me/lucko/luckperms/common/locale/Message.java +++ b/common/src/main/java/me/lucko/luckperms/common/locale/Message.java @@ -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),