mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-02 23:23:49 +01:00
Actually alphabetize players - thanks @Grooohm for the good spot!
This commit is contained in:
parent
92c1450909
commit
e2f134ec08
@ -2,6 +2,7 @@ package net.md_5.bungee.command;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import net.md_5.bungee.api.ChatColor;
|
import net.md_5.bungee.api.ChatColor;
|
||||||
import net.md_5.bungee.api.CommandSender;
|
import net.md_5.bungee.api.CommandSender;
|
||||||
@ -40,6 +41,7 @@ public class CommandList extends Command
|
|||||||
{
|
{
|
||||||
players.add( player.getDisplayName() );
|
players.add( player.getDisplayName() );
|
||||||
}
|
}
|
||||||
|
Collections.sort( players );
|
||||||
|
|
||||||
if ( !players.isEmpty() )
|
if ( !players.isEmpty() )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user