Snowiiii / Pumpkin

Empowering everyone to host fast and efficient Minecraft servers.
MIT License
598 stars 25 forks source link

Add tab support for commands #94

Open Snowiiii opened 5 days ago

Snowiiii commented 5 days ago

Support Name Tabing when writing Commands. We want to add Support for both Console and In-Game

Game Packets

wendulem commented 3 days ago

@Snowiiii Hey, first time contributor. Could you document this a bit more. Do you mean that when processing stdin in main.rs the command dispatcher (given the user pressed tab) should output the command names that match - or complete stdin with the uniquely matching command in that case

Snowiiii commented 2 days ago

@Snowiiii Hey, first time contributor. Could you document this a bit more. Do you mean that when processing stdin in main.rs the command dispatcher (given the user pressed tab) should output the command names that match - or complete stdin with the uniquely matching command in that case

Hey, Great your interested in contributing. Pumpkin is currently heavily in WIP. That's the Reason documentation is so poor. I also opend this issue recently and completely forgot about it. I will edit it a bit to give more Informations.

So the Plan is to support both Tab support in the Server Console and In-Game.

We have a Command Dispatcher struct which is stored in pumpkin/server.rs. The Dispatcher has all Command