From a4c5d0bde648d46f093e8794c8b977d65a890ca1 Mon Sep 17 00:00:00 2001 From: Goodlyay Date: Fri, 23 Oct 2015 19:37:07 -0700 Subject: [PATCH] Fixed title bracket coloring. Also added CmdMark, CmdRanks and CmdXModel back into the solution because they were gone for some reason. --- Commands/CmdOverseer.cs | 1 + MCGalaxy_.csproj | 5 ++++- Player/Player.cs | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Commands/CmdOverseer.cs b/Commands/CmdOverseer.cs index 320d2334c..41237dc0d 100644 --- a/Commands/CmdOverseer.cs +++ b/Commands/CmdOverseer.cs @@ -15,6 +15,7 @@ or implied. See the Licenses for the specific language governing permissions and limitations under the Licenses. */ +using System; using System.IO; using System.Linq; namespace MCGalaxy.Commands diff --git a/MCGalaxy_.csproj b/MCGalaxy_.csproj index e58fbaaf7..0c36103e5 100644 --- a/MCGalaxy_.csproj +++ b/MCGalaxy_.csproj @@ -138,15 +138,18 @@ + + + Component @@ -769,4 +772,4 @@ - + \ No newline at end of file diff --git a/Player/Player.cs b/Player/Player.cs index ce0cf92b8..9999a916a 100644 --- a/Player/Player.cs +++ b/Player/Player.cs @@ -1,4 +1,4 @@ -/* +/* Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy) Dual-licensed under the Educational Community License, Version 2.0 and the GNU General Public License, Version 3 (the "Licenses"); you may @@ -1465,7 +1465,8 @@ namespace MCGalaxy { public void SetPrefix() { string viptitle = isDev ? string.Format("{1}[{0}Dev{1}] ", c.Parse("blue"), color) : isMod ? string.Format("{1}[{0}Mod{1}] ", c.Parse("lime"), color) : isGCMod ? string.Format("{1}[{0}GCMod{1}] ", c.Parse("gold"), color) : ""; - prefix = ( title == "" ) ? "" : ( titlecolor == "" ) ? color + "[" + title + color + "] " : titlecolor + "[" + titlecolor + title + titlecolor + "] " + color; + //prefix = ( title == "" ) ? "" : ( titlecolor == "" ) ? color + "[" + title + color + "] " : titlecolor + "[" + titlecolor + title + titlecolor + "] " + color; + prefix = ( title == "" ) ? "" : ( titlecolor == "" ) ? color + "[" + title + "] " : color + "[" + titlecolor + title + color + "] "; prefix = viptitle + prefix; }