mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2026-05-24 21:37:21 +00:00
Actually send messages. Too obvious of an oversight.
This commit is contained in:
@@ -148,16 +148,14 @@ class RedisBungeeCommands {
|
|||||||
if (secs == 0) {
|
if (secs == 0) {
|
||||||
message.setColor(ChatColor.GREEN);
|
message.setColor(ChatColor.GREEN);
|
||||||
message.setText(args[0] + " is currently online.");
|
message.setText(args[0] + " is currently online.");
|
||||||
sender.sendMessage(message);
|
|
||||||
} else if (secs != -1) {
|
} else if (secs != -1) {
|
||||||
message.setColor(ChatColor.BLUE);
|
message.setColor(ChatColor.BLUE);
|
||||||
message.setText(args[0] + " was last online on " + new SimpleDateFormat().format(secs) + ".");
|
message.setText(args[0] + " was last online on " + new SimpleDateFormat().format(secs) + ".");
|
||||||
sender.sendMessage(message);
|
|
||||||
} else {
|
} else {
|
||||||
message.setColor(ChatColor.RED);
|
message.setColor(ChatColor.RED);
|
||||||
message.setText(args[0] + " has never been online.");
|
message.setText(args[0] + " has never been online.");
|
||||||
sender.sendMessage(message);
|
|
||||||
}
|
}
|
||||||
|
sender.sendMessage(message);
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(NO_PLAYER_SPECIFIED);
|
sender.sendMessage(NO_PLAYER_SPECIFIED);
|
||||||
}
|
}
|
||||||
@@ -190,6 +188,7 @@ class RedisBungeeCommands {
|
|||||||
TextComponent message = new TextComponent();
|
TextComponent message = new TextComponent();
|
||||||
message.setColor(ChatColor.GREEN);
|
message.setColor(ChatColor.GREEN);
|
||||||
message.setText(args[0] + " is connected from " + ia.toString() + ".");
|
message.setText(args[0] + " is connected from " + ia.toString() + ".");
|
||||||
|
sender.sendMessage(message);
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(PLAYER_NOT_FOUND);
|
sender.sendMessage(PLAYER_NOT_FOUND);
|
||||||
}
|
}
|
||||||
@@ -217,6 +216,7 @@ class RedisBungeeCommands {
|
|||||||
TextComponent message = new TextComponent();
|
TextComponent message = new TextComponent();
|
||||||
message.setColor(ChatColor.GREEN);
|
message.setColor(ChatColor.GREEN);
|
||||||
message.setText("Sent the command /" + command + " to all proxies.");
|
message.setText("Sent the command /" + command + " to all proxies.");
|
||||||
|
sender.sendMessage(message);
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(NO_COMMAND_SPECIFIED);
|
sender.sendMessage(NO_COMMAND_SPECIFIED);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user