Skip to content

Commit 94fa948

Browse files
committed
Fix /softeware command
Update to new default software name Fixed an issue where you couldn't change the color of the software name without using console.
1 parent db31549 commit 94fa948

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fCraft/Commands/MaintenanceCommands.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ static void AutoRankCheckHandler( Player player, CommandReader cmd ) {
14151415
Category = CommandCategory.New | CommandCategory.Maintenance,
14161416
Permissions = new[] { Permission.EditPlayerDB },
14171417
IsConsoleSafe = true,
1418-
Help = "Set the colors of the server software name on the server list. &NOnly console may change the actual software name. &NUse reset/default/normal to change it back to &cP&4R&6O&eC&aR&2A&bF&3T",
1418+
Help = "Set the colors of the server software name on the server list. &NOnly console may change the actual software name. &NUse reset/default/normal to change it back to \"ProCraft\"",
14191419
Usage = "/Software <new software name>",
14201420
Handler = SoftwareHandler
14211421
};
@@ -1430,13 +1430,13 @@ static void SoftwareHandler(Player player, CommandReader cmd) {
14301430
return;
14311431
}
14321432
if (newSW.CaselessEquals("reset") || newSW.CaselessEquals("default") || newSW.CaselessEquals("normal")) {
1433-
newSW = "&cP&4R&6O&eC&aR&2A&bF&3T";
1433+
newSW = "ProCraft";
14341434
}
14351435

14361436
if (newSW == oldSW) {
14371437
player.Message("Server software is already set to \"&F{1}&S\"", newSW);
14381438
return;
1439-
} else if (!Color.StripColors(newSW, true).CaselessEquals(Server.Software) && player != Player.Console) {
1439+
} else if (!Color.StripColors(newSW, true).CaselessEquals(Color.StripColors(oldSW, true)) && player != Player.Console) {
14401440
player.Message("&COnly console may change the actual name of the software.");
14411441
return;
14421442
}

0 commit comments

Comments
 (0)