CountPlayersByRank() public static method

public static CountPlayersByRank ( Rank rank ) : int
rank Rank
return int
コード例 #1
0
ファイル: InfoCommands.cs プロジェクト: TheDireMaster/fCraft
 internal static void Ranks(Player player, Command cmd)
 {
     player.Message("Below is a list of ranks. For detail see &H{0}", cdRankInfo.Usage);
     foreach (Rank rank in RankManager.Ranks)
     {
         player.Message("&S    {0}  ({1} players)",
                        rank.GetClassyName(),
                        PlayerDB.CountPlayersByRank(rank));
     }
 }