Removed the offline message "TODO" in User

Most of it will be handled by the Island history
This commit is contained in:
Florian CUNY 2019-01-03 13:37:54 +01:00
parent 0b62c7cf76
commit 245062b36e

View File

@ -274,13 +274,8 @@ public class User {
*/ */
public void sendMessage(String reference, String... variables) { public void sendMessage(String reference, String... variables) {
String message = getTranslation(reference, variables); String message = getTranslation(reference, variables);
if (!ChatColor.stripColor(message).trim().isEmpty()) { if (!ChatColor.stripColor(message).trim().isEmpty() && sender != null) {
if (sender != null) {
sender.sendMessage(message); sender.sendMessage(message);
} else {
// TODO: Offline message
// Save this message so the player can see it later
}
} }
} }
@ -291,9 +286,6 @@ public class User {
public void sendRawMessage(String message) { public void sendRawMessage(String message) {
if (sender != null) { if (sender != null) {
sender.sendMessage(message); sender.sendMessage(message);
} else {
// TODO: Offline message
// Save this message so the player can see it later
} }
} }