These are chat archives for PrismarineJS/prismarine-server

25th
Apr 2015
demipixel
@demipixel
Apr 25 2015 03:41
return players.slice(0)
.slice(0) will clone the array
Therefore any changes will be meaningless
Robin Lambertz
@roblabla
Apr 25 2015 10:23
yeah
Romain Beaumont
@rom1504
Apr 25 2015 12:21
I don't like how cloud9 want to add a ssh key in github to use the site
hmm seems it's possible to create an account with email too
seriously es6 has "extends", copying java much :p ?
Robin Lambertz
@roblabla
Apr 25 2015 13:05
@rom1504 extends is more of a mixin though
Besides, it makes sense ^^
Will Franzen
@wtfaremyinitials
Apr 25 2015 13:05
oh hey rob :)
Robin Lambertz
@roblabla
Apr 25 2015 13:06
Oh hey wtf :D
Will Franzen
@wtfaremyinitials
Apr 25 2015 13:07
I started implementing a bit of what we were doing last night
Robin Lambertz
@roblabla
Apr 25 2015 13:07
cool ! is it on github somewhere ?
Will Franzen
@wtfaremyinitials
Apr 25 2015 13:07
nah, I just started with this like 20 minutes ago :stuck_out_tongue:
Robin Lambertz
@roblabla
Apr 25 2015 13:07
ah ok
Will Franzen
@wtfaremyinitials
Apr 25 2015 13:08
so question: where should require-ing the modules named on config.json be handled? in the server binary, or in the addWorld function of server
Robin Lambertz
@roblabla
Apr 25 2015 13:08
Well, config.json should be transformed into an object that we pass to createServer()
then the requiring should go in each World
Also, I though a bit about plugin scoping
From experience managing minecraft servers, it's very very annoying how plugins are server-scoped and not world-scoped
So I think we should let the server owner tell what the scope of each plugin is
Will Franzen
@wtfaremyinitials
Apr 25 2015 13:15
#! /usr/bin/env node
var prismarine = require('../index.js');
var config = JSON.parse(require('fs').readFileSync(process.cwd() + '/server.json'));

var server = prismarine.createServer(config);
@roblabla
Robin Lambertz
@roblabla
Apr 25 2015 13:19
yeah
demipixel
@demipixel
Apr 25 2015 22:39
Two questions
1) Are we really starting this project? Just wondering :D
2) We shouldn't call it prismarine
prismarineServer maybe, or something like that? We're doing a lot of stuff that it might be confusing
idk just my opinion
Will Franzen
@wtfaremyinitials
Apr 25 2015 22:51
1) yeah, I’ve started :)
2) why not call it prismarine? mineflayer isnt "mineflayerBot"
demipixel
@demipixel
Apr 25 2015 23:20
@wtfaremyinitials Cool. I know it's suppose to be a "larger project" but how long before we can make a server that runs? AKA people can join but it doesn't have physics, blocks, etc?
2) Because mineflayer is the bot
For prismarine, there's the server, chunks, nbt data (I think), etc
meh, I guess
okay whatever :P
Will Franzen
@wtfaremyinitials
Apr 25 2015 23:30
All I need is a couple more hours to get to that point
I’m just working on something else right now
demipixel
@demipixel
Apr 25 2015 23:59
@wtfaremyinitials kk