Skip to content

Commit

Permalink
Colorcode fix #5416@cuberite (#247)
Browse files Browse the repository at this point in the history
* Colorcode fix for when #5416 from cuberite is merged
  • Loading branch information
tonitch authored Oct 27, 2022
1 parent 6d8a620 commit 27185c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd_scoreboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ local Slots =
["count"] = cScoreboard.dsCount,
}


function HandleScoreboardObjectivesCommand(Split, Player)
local Response
local Scoreboard
Expand All @@ -41,7 +42,7 @@ function HandleScoreboardObjectivesCommand(Split, Player)
Response = SendMessageFailure(Player, "add, remove, list, setdisplay, modify")

elseif Split[3] == "list" then
Response = SendMessage(Player, cCompositeChat():AddTextPart("DisplayName -> Name : Type", "u @2"))
Response = SendMessage(Player, cCompositeChat():AddTextPart("DisplayName -> Name : Type", "2n"))
Scoreboard:ForEachObjective(SendListObjectives)

elseif Split[3] == "remove" then
Expand Down Expand Up @@ -226,7 +227,6 @@ function HandleScoreboardPlayersCommand(Split, Player)
return true, table.concat(MultiLineResponse, "\n")
end


-- Handle commands for console

function HandleConsoleScoreboardObjectives(Split)
Expand Down
2 changes: 1 addition & 1 deletion core_motd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function LoadMOTD()
-- Check if the file 'motd.txt' exists, if not, create it with default content:
if not cFile:IsFile("motd.txt") then
CreateFile = io.open("motd.txt", "w")
CreateFile:write("@6Welcome to the Cuberite test server!\n@6https://cuberite.org/\n@6Type /help for all commands")
CreateFile:write("&6Welcome to the Cuberite test server!\n&6https://cuberite.org/\n&6Type /help for all commands")
CreateFile:close()
end

Expand Down

0 comments on commit 27185c6

Please sign in to comment.