mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-30 22:53:39 +01:00
Removed the offline message "TODO" in User
Most of it will be handled by the Island history
This commit is contained in:
parent
0b62c7cf76
commit
245062b36e
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user