So this is my setup for a minecraft server, it isn't the best, but it works well for me and my friends.
So I mostly start with setting up a Debian Server with a ucer called minecraft or mc, or something similar.
Go to: https://docs.qmk.fm/#/newbs_getting_started
Install the Prerequisites
On arch you can just do pacman -S qmk
or yay -S qmk