mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-06 03:31:10 +00:00
update example in README
This commit is contained in:
parent
892199e4a3
commit
710473b926
1 changed files with 13 additions and 7 deletions
20
README.md
20
README.md
|
|
@ -52,13 +52,19 @@ Flying-squid is also a server lib. Here is a basic example of usage :
|
||||||
var mcServer=require("flying-squid");
|
var mcServer=require("flying-squid");
|
||||||
|
|
||||||
mcServer.createMCServer({
|
mcServer.createMCServer({
|
||||||
motd: "Basic flying-squid server",
|
"motd": "A Minecraft Server \nRunning flying-squid",
|
||||||
'max-players': 10,
|
"port": 25565,
|
||||||
port: 25565,
|
"maxPlayers": 10,
|
||||||
'online-mode': true,
|
"onlineMode": true,
|
||||||
gameMode:0,
|
"logging": true,
|
||||||
commands: {},
|
"gameMode": 1,
|
||||||
logging:false
|
"generation": {
|
||||||
|
"name":"diamond_square",
|
||||||
|
"options":{
|
||||||
|
"worldHeight":80
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"modpe": false
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue