mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-18 14:01:13 +00:00
add everybody-op option, fix #181
This commit is contained in:
parent
029c31fad6
commit
678656e631
3 changed files with 5 additions and 3 deletions
|
|
@ -21,5 +21,6 @@
|
|||
"player-list-text": {
|
||||
"header":"Flying squid",
|
||||
"footer":"Test server"
|
||||
}
|
||||
},
|
||||
"everybody-op":true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -230,6 +230,7 @@ Options is an object containing the following properties:
|
|||
* plugins
|
||||
* view-distance
|
||||
* player-list-text : an object with keys header and footer, displayed on the player list
|
||||
* everybody-op : true or false, makes everybody op
|
||||
|
||||
### Properties
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ module.exports.server=function(serv,options)
|
|||
});
|
||||
};
|
||||
|
||||
module.exports.player=function(player,serv)
|
||||
module.exports.player=function(player,serv,settings)
|
||||
{
|
||||
function addPlayer()
|
||||
{
|
||||
|
|
@ -40,7 +40,7 @@ module.exports.player=function(player,serv)
|
|||
player.health = 20;
|
||||
player.food = 20;
|
||||
player.crouching = false; // Needs added in prismarine-entity later
|
||||
player.op = true; // REMOVE THIS WHEN OUT OF TESTING
|
||||
player.op = settings["everybody-op"]; // REMOVE THIS WHEN OUT OF TESTING
|
||||
player.username=player._client.username;
|
||||
serv.players.push(player);
|
||||
serv.uuidToPlayer[player._client.uuid] = player;
|
||||
|
|
|
|||
Loading…
Reference in a new issue