private void OnServerInitialized()
 {
     ins = this;
     foreach (BasePlayer player in BasePlayer.activePlayerList)
     {
         OnPlayerInit(player);
     }
 }
Example #2
0
        private void OnServerInitialized()
        {
            lang.RegisterMessages(new Dictionary <string, string>
            {
                ["PlayerStatisticsMSG"] = "<color=#ffc300>Your PvP Statistics</color> : <color=#ffc300>{0}</color> Kills, <color=#ffc300>{1}</color> Deaths, <color=#ffc300>{2}</color> K/D Ratio",
                ["ConsoleWipeMSG"]      = "{0} Players Pvp Statistics were wiped!",
                ["ConsoleResetMSG"]     = "{0} PvP Statistics has been reset",
                ["ConsoleNotFoundMSG"]  = "{0} Not Found!",
            }, this);

            ins = this;
            BasePlayer.activePlayerList.ForEach(player => { if (player != null)
                                                            {
                                                                OnPlayerInit(player);
                                                            }
                                                });
        }