mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-14 00:38:01 +00:00
gosh
This commit is contained in:
parent
085286fbec
commit
b470b7a3df
@ -30,11 +30,11 @@ import java.util.TreeSet;
|
|||||||
*/
|
*/
|
||||||
class RedisBungeeCommands {
|
class RedisBungeeCommands {
|
||||||
private static final BaseComponent[] NO_PLAYER_SPECIFIED =
|
private static final BaseComponent[] NO_PLAYER_SPECIFIED =
|
||||||
new ComponentBuilder("").color(ChatColor.RED).append("You must specify a player name.").create();
|
new ComponentBuilder("You must specify a player name.").color(ChatColor.RED).create();
|
||||||
private static final BaseComponent[] PLAYER_NOT_FOUND =
|
private static final BaseComponent[] PLAYER_NOT_FOUND =
|
||||||
new ComponentBuilder("").color(ChatColor.RED).append("No such player found.").create();
|
new ComponentBuilder("No such player found.").color(ChatColor.RED).create();
|
||||||
private static final BaseComponent[] NO_COMMAND_SPECIFIED =
|
private static final BaseComponent[] NO_COMMAND_SPECIFIED =
|
||||||
new ComponentBuilder("").color(ChatColor.RED).append("You must specify a command to be run.").create();
|
new ComponentBuilder("You must specify a command to be run.").color(ChatColor.RED).create();
|
||||||
|
|
||||||
public static class GlistCommand extends Command {
|
public static class GlistCommand extends Command {
|
||||||
GlistCommand() {
|
GlistCommand() {
|
||||||
@ -62,13 +62,13 @@ class RedisBungeeCommands {
|
|||||||
sender.sendMessage(serverName, serverCount, serverPlayers);
|
sender.sendMessage(serverName, serverCount, serverPlayers);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(new ComponentBuilder("").color(ChatColor.YELLOW).append("Players: ")
|
sender.sendMessage(new ComponentBuilder("Players: " + Joiner.on(", ").join(RedisBungee.getApi().getPlayersOnline()))
|
||||||
.append(Joiner.on(", ").join(RedisBungee.getApi().getPlayersOnline())).create());
|
.color(ChatColor.YELLOW).create());
|
||||||
}
|
}
|
||||||
sender.sendMessage(playersOnline);
|
sender.sendMessage(playersOnline);
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(playersOnline);
|
sender.sendMessage(playersOnline);
|
||||||
sender.sendMessage(new ComponentBuilder("").color(ChatColor.YELLOW).append("To see all players online, use /glist showall.").create());
|
sender.sendMessage(new ComponentBuilder("To see all players online, use /glist showall.").color(ChatColor.YELLOW).create());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user