Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
[skyblock_levels] Improve /who for #144
Browse files Browse the repository at this point in the history
  • Loading branch information
aerozoic committed Jul 13, 2016
1 parent 0e3f359 commit 8c159c4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions mods/skyblock_levels/register_command.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,16 @@ minetest.register_chatcommand('who', {

end

local answer = "size[3,3]" ..
"tablecolumns[text,align=center,width=5;" ..
local answer = "size[4,4]" ..
"tablecolumns[text,align=center,width=10;" ..
"text,align=center,width=2;" ..
"text,align=center,width=5]" ..
"text,align=right,width=5]" ..
"tableoptions[background=#334522]" ..
"label[0, 0; Players and levels]" ..
"table[0, 0.5; 2.8, 2.5; players;"
"label[.7, -.2; Who's Currently Online]" ..
"label[0, .5; Players]" ..
"label[3, .5; Level]" ..
"button_exit[3, 3.7; 1.1, .7; close; Close]" ..
"table[0, 1; 3.8, 2.5; players;"

for _,player in pairs(minetest.get_connected_players()) do
local player_name = player:get_player_name()
Expand Down

0 comments on commit 8c159c4

Please sign in to comment.