mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-18 05:51:12 +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");
|
||||
|
||||
mcServer.createMCServer({
|
||||
motd: "Basic flying-squid server",
|
||||
'max-players': 10,
|
||||
port: 25565,
|
||||
'online-mode': true,
|
||||
gameMode:0,
|
||||
commands: {},
|
||||
logging:false
|
||||
"motd": "A Minecraft Server \nRunning flying-squid",
|
||||
"port": 25565,
|
||||
"maxPlayers": 10,
|
||||
"onlineMode": true,
|
||||
"logging": true,
|
||||
"gameMode": 1,
|
||||
"generation": {
|
||||
"name":"diamond_square",
|
||||
"options":{
|
||||
"worldHeight":80
|
||||
}
|
||||
},
|
||||
"modpe": false
|
||||
});
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue