Commit graph

33 commits

Author SHA1 Message Date
Romain Beaumont
061176d377 run standard 2022-11-11 22:24:15 +00:00
Romain Beaumont
0bd2e559bd
run standard 1.12 --fix 2018-09-24 22:08:11 +02:00
Romain Beaumont
e3e0a26dfe
change codestyle to standard + enforce it with circle ci 2018-05-13 22:50:16 +02:00
Lane Kolbly
c7aaee6dbc Changed let scope, added undefined check. 2017-08-10 16:50:12 -05:00
Romain Beaumont
79f82afb91
var -> const/let in examples and tests 2017-07-13 14:03:52 +02:00
Romain Beaumont
d9d29bf17d Merge pull request #392 from vimes1984/patch-2
Update proxy.js
2016-03-21 15:56:21 +01:00
christopher james churchill
25750ddf2d Update proxy.js
ups != was right in one of those cases.... 
ummm using typeof may be better? 
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
2016-03-21 14:51:26 +00:00
christopher james churchill
bc94bc1fe0 Update proxy.js
changing == to === and != to !== becuase js is a bitch see: 
http://www.impressivewebs.com/why-use-triple-equals-javascipt/
2016-03-21 14:46:06 +00:00
christopher james churchill
d9782d6d9f Update proxy.js
fixing type in example code :D
2016-03-21 14:40:53 +00:00
Romain Beaumont
440a190780 update to 1.9-pre4, improve the proxy errors a bit 2016-02-27 18:10:11 +01:00
Romain Beaumont
a698749387 fix state displaying in proxy 2016-02-15 23:18:57 +01:00
Romain Beaumont
86397e7d06 display error in proxy 2016-02-15 20:50:42 +01:00
Romain Beaumont
43d56de2f6 fix cli options doc proxy example, fix #313 2016-01-07 01:55:28 +01:00
Romain Beaumont
b2b53c9343 a few small changes to make the code better 2015-11-30 22:19:56 +01:00
Romain Beaumont
57d9c05941 use require-self to be able to use require('minecraft-protocol') in examples 2015-11-30 13:23:38 +01:00
Romain Beaumont
787f8d3423 fix gamemode3 in proxy : fix #146
* correctly generate the same uuidv3 than the vanilla server does in offline mode : fix #282
* remove "one player online mode" in the proxy : it doesn't make sense to identify all players as the user/passwd given in the cli. Now both servers in offline mode.
2015-11-08 23:34:15 +01:00
Romain Beaumont
23b077b76f fix compression in proxy, fix #292 2015-11-08 23:34:15 +01:00
Romain Beaumont
f45c6dff49 use protodef:
* move general datatypes to protodef along with their tests
* move states to states.js file
* use one protodef serializer by state and direction instead of one big serializer for everything (same thing for the deserializer)
* define a packet as a protodef type using a switch and a container, and adding each minecraft packet as a type (packet_ + name)
* use mapper type from protodef to convert id to name in packet definition
* use general string type : pstring
* divide by 10 the number of iteration in the benchmark to get back to a reasonable test execution time
2015-11-08 23:29:51 +01:00
Romain Beaumont
30fd138ae9 use bufferEqual instead of buffertools
native modules are annoying
2015-10-13 17:11:51 +02:00
Romain Beaumont
3f50a6f19a add an optional argument to the proxy example to specify the version 2015-09-30 00:17:44 +02:00
Romain Beaumont
7871ac446a fix proxy relatively to the unexposing of createPacketBuffer
also fix a small bug in serializer.js
2015-09-30 00:03:42 +02:00
roblabla
cf1503f9de Fix proxy.js 2015-09-23 15:22:02 +02:00
Romain Beaumont
0ce00f2cc7 put keepAlive: false in proxy.js : fix connecting to a proxy with some lag (ie not with both proxy and vanilla client in localhost) 2015-08-08 17:29:54 +02:00
Romain Beaumont
145c6b4840 add a little info in the proxy example 2015-08-06 00:04:53 +02:00
Romain Beaumont
5743cd8b64 Revert "Add some debug information (useful to update to an updated protocol)"
This reverts commit d2435c8dcd.
2015-08-05 23:30:04 +02:00
Romain Beaumont
d2435c8dcd Add some debug information (useful to update to an updated protocol) 2015-08-02 18:14:58 +02:00
Romain Beaumont
a3c65de9a4 Display more information in proxy.js 2015-08-02 18:14:52 +02:00
Romain Beaumont
1a9e08cbd8 move createPacketBuffer and parsePacketData functions to serializer, also move protocol's exports to serializer 2015-05-23 03:31:47 +02:00
radare-travis
ad2ad01787 Quickfix for proxy example to properly handle compression changes 2015-05-16 01:08:41 +00:00
Romain Beaumont
1dec8ccffd fix indentation and a few other stuff webstorm felt like fixing (for example if (condition) -> if(condition) since that was the more frequent style in node-minecraft-protocol) 2015-05-14 22:08:49 +02:00
Will Franzen
879d525fc5 Update proxy.js 2015-03-26 10:26:01 -05:00
Will Franzen
c6404f0274 Merge branch 'master' of https://github.com/PrismarineJS/node-minecraft-protocol into fix-122 2015-03-25 14:08:33 -05:00
Will Franzen
f9b3359577 Give each example its own package.json to resolve #122 2015-03-25 14:07:29 -05:00
Renamed from examples/proxy.js (Browse further)