local tText = {
"---Owner---",
"name",
" ",
"---Administrator---",
"name",
" ",
"---Moderators---",
"name",
"name",
"name",
"name",
"name",
"name",
"name",
"name"
}
local sSide = "left"
local nTextSize = 1
local function printCenter(mon, t)
local w, h = mon.getSize()
local y = math.floor((h / 2) - (#t / 2)) - 1
for i, line in ipairs(t) do
local x = math.floor((w / 2) - (#line / 2))
mon.setCursorPos(x, y + i)
mon.write(line)
end
end
local mon = peripheral.wrap(sSide)
mon.setTextScale(nTextSize)
printCenter(mon, tText)
Problem is now, I need to add a couple more people, but the list is too long and it cuts off some of it. So I was thinking of maybe making 2 separate columns for the moderators list, but I really don't know how to.