mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 06:03:33 -04:00
fix cli options doc proxy example, fix #313
This commit is contained in:
parent
708fb963f6
commit
43d56de2f6
@ -2,7 +2,7 @@ var mc = require('minecraft-protocol');
|
||||
|
||||
var states = mc.states;
|
||||
function printHelpAndExit(exitCode) {
|
||||
console.log("usage: node proxy.js [<options>...] <target_srv> [<version>]");
|
||||
console.log("usage: node proxy.js [<options>...] <target_srv> <version>");
|
||||
console.log("options:");
|
||||
console.log(" --dump name");
|
||||
console.log(" print to stdout messages with the specified name.");
|
||||
@ -13,9 +13,9 @@ function printHelpAndExit(exitCode) {
|
||||
console.log(" name");
|
||||
console.log(" a packet name as defined in protocol.json");
|
||||
console.log("examples:");
|
||||
console.log(" node proxy.js --dump-all -x keep_alive -x update_time -x entity_velocity -x rel_entity_move -x entity_look -x entity_move_look -x entity_teleport -x entity_head_rotation -x position -x localhost Player");
|
||||
console.log(" node proxy.js --dump-all -x keep_alive -x update_time -x entity_velocity -x rel_entity_move -x entity_look -x entity_move_look -x entity_teleport -x entity_head_rotation -x position -x localhost 1.8");
|
||||
console.log(" print all messages except for some of the most prolific.");
|
||||
console.log(" node examples/proxy.js --dump open_window --dump close_window --dump set_slot --dump window_items --dump craft_progress_bar --dump transaction --dump close_window --dump window_click --dump set_creative_slot --dump enchant_item localhost Player");
|
||||
console.log(" node examples/proxy.js --dump open_window --dump close_window --dump set_slot --dump window_items --dump craft_progress_bar --dump transaction --dump close_window --dump window_click --dump set_creative_slot --dump enchant_item localhost 1.8");
|
||||
console.log(" print messages relating to inventory management.");
|
||||
|
||||
process.exit(exitCode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user