Skip to content

Commit dffb996

Browse files
committed
betterInfo
1 parent 8ffe2ca commit dffb996

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

server/savedWorld.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

server/start.js

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,23 @@ info\t- wypisuje informacje o serwerze
110110
`)
111111
}
112112
function info(){
113-
term.gray(`\nSerwer websocket działa pod adresem: http://${config["host"]}:${config["websocket-port"]}\n`)
114-
term.bold.magenta(`Serwer WWW działa pod adresem: http://${config["host"]}:${config["express-port"]}\n`)
113+
term("\n")
114+
term.table( [
115+
[ 'Typ serwera' , `Adres serwera` ] ,
116+
[ 'Serwer websocket' , `${config.host}:${config["websocket-port"]}` ] ,
117+
[ 'Serwer express' , `${config.host}:${config["express-port"]}` ] ,
118+
[ 'Serwer minecraftowy' , `${config.realServer.ip}:${config.realServer.port}` ] ,
119+
] , {
120+
hasBorder: true ,
121+
contentHasMarkup: true ,
122+
borderChars: 'lightRounded' ,
123+
borderAttr: { color: 'blue' } ,
124+
textAttr: { bgColor: 'default' } ,
125+
firstRowTextAttr: { bgColor: 'blue' } ,
126+
width: 60 ,
127+
fit: true // Activate all expand/shrink + wordWrap
128+
}
129+
) ;
115130
}
116131

117132
function com(command){

0 commit comments

Comments
 (0)