From e2f134ec08a33ddadab0840eec94378bee4c8b36 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 12 Mar 2013 16:56:09 +1100 Subject: [PATCH] Actually alphabetize players - thanks @Grooohm for the good spot! --- proxy/src/main/java/net/md_5/bungee/command/CommandList.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy/src/main/java/net/md_5/bungee/command/CommandList.java b/proxy/src/main/java/net/md_5/bungee/command/CommandList.java index 82a7534f..be03fa5d 100644 --- a/proxy/src/main/java/net/md_5/bungee/command/CommandList.java +++ b/proxy/src/main/java/net/md_5/bungee/command/CommandList.java @@ -2,6 +2,7 @@ package net.md_5.bungee.command; import java.util.ArrayList; import java.util.Collection; +import java.util.Collections; import java.util.List; import net.md_5.bungee.api.ChatColor; import net.md_5.bungee.api.CommandSender; @@ -40,6 +41,7 @@ public class CommandList extends Command { players.add( player.getDisplayName() ); } + Collections.sort( players ); if ( !players.isEmpty() ) {