You are browsing as a guest. Sign up (or log in) to start making projects!

16h 9m 9s logged

Oh no i forgot to do a post 👀

Well, here we are 16 hours in… again.

Context
I am programming a mini game server for Minecraft with Minestom, a library which allows me to create my own server from scratch. (in java)

Overview of what i have done

  • Added a server side console where an administrator can input commands which the server executes with a library called jLine
  • Tried making a workflow for automatically building with some success
  • Made a Spleef game prototype
  • Improved the ghost player system
  • Made a ui makeover for chat elements (again again)
  • Added some new abilities/commands

Server side console

I have added a console thing where, after the server started, somebody with access to the terminal can run commands as the server with all permissions.

For that i used a lib called jLine to make it just like the consoles most Minecraft server administrators should be familiar with.

The actual hard part was that i had to rewrite some of the code i already have done. For example commands that would only work if they where run by a player needed now to check first if the command caller is the server actually itself.

Actions

I never used github actions or something like that.

So i did the normal thing and created a runner for my own forgejo git instance and build an action without understanding more than 60% of it or even less.

While i did not manage to create a docker build process i managed to create an action which builds my gradle java project with shadowjar and puts all required files into a zip which gets saved to my repo as an artifact file to be downloaded and executed instantly.

turns out it is really dumb to try create an action on an runner which uses podman which uses docker in docker in a container which now should have installed docker inside of that to build an image?
IDK man i have to sleep at some point

Ghosts

I have already made a system letting games make players ghosts who can’t interact with the world around them.
Now i have made it like hypixel does it. Players are getting hidden from all other players. Not by giving them an invisible potion or something. The server lets players disappear by just not sending information about their whereabouts to the other players oh and they are in a survival mode but can still fly. TO NOT LET THEM ESCAPE MUHAHA i am evil or something.

Oh and new commands

I have made small commands which i though would be fun.

hide

Tell server to hide your player account by the same principle as the ghost system.

fly

Enable flying for your player account.

stop

Literally stops the server

help

A help command which tells players all about the commands they can access with their permissions

nickname

Kicks you but after joining again you will be logged in as another account name with the others skin etc. Only your uuid will stay the same to still be able to fetch your accurate permission etc. on the server.

(of course this and most of the others commands on this level are behind permissions and can’t be accessed that easily)

By, by

Hope you have a great rest of a good day!

I am currently on vacation and therefore have to use my Labtop instead of my PC. I already miss him i just tried another linux distro on it :(

0
12

Comments 0

No comments yet. Be the first!