darcros / node-minecraft-proxy

Simple Minecraft proxy written in Node.js using the node-minecraft-protocol library
MIT License
32 stars 15 forks source link

[leopoldhub] Custom plugins, Packet cancellation and other improvements... #7

Closed leopoldhub closed 2 years ago

leopoldhub commented 2 years ago

Update node-minecraft-protocol version. Add the possibility to make custom plugins for the proxy and localServer. Add the possibility to cancel sended packets. An example is also created to help peoples.

leopoldhub commented 2 years ago

Update the way servers are stored.

let serverList = {
  hub: {
    host: 'localhost',
    port: 25565,
    isDefault: true,
    isFallback: true
  },
  minigames: {
    host: 'localhost',
    port: 25566
  }
}

to

let serverList = [
    {
      name: "hub",
      settings: {
        host: 'localhost',
        port: 25565,
        isDefault: true,
        isFallback: true
      }
    },
    {
      name: "minigames",
      settings: {
      host: 'localhost',
      port: 25566
    }
  },
];
leopoldhub commented 2 years ago

Add a prettier config and reformat the files.