Example #1
0
        public void SetPrefix()
        {
            prefix = Game.Referee ? "&2[Ref] " : "";
            if (group.prefix != "")
            {
                prefix += "&f" + group.prefix + color;
            }
            IGame game = level == null ? null : level.CurrentGame();

            if (game != null)
            {
                game.AdjustPrefix(this, ref prefix);
            }

            bool   isOwner  = Server.server_owner != "" && Server.server_owner.CaselessEq(name);
            string viptitle = isDev ? string.Format("{0}[&9Dev{0}] ", color) :
                              isMod?string.Format("{0}[&aMod{0}] ", color) :
                                  isOwner?string.Format("{0}[&cOwner{0}] ", color) : "";

            prefix = prefix + viptitle;
            prefix = (title == "") ? prefix : prefix + color + "[" + titlecolor + title + color + "] ";
        }