Skip to content

Instantly share code, notes, and snippets.

View RedstoneZockt's full-sized avatar
😄

Klaas Lange RedstoneZockt

😄
View GitHub Profile
@dotStart
dotStart / MinecraftService.md
Last active September 13, 2025 19:17
Systemd services for Minecraft Servers

Minecraft systemd Services

This gist contains service descriptors which may be used to automatically start and re-start Minecraft servers using systemd. This allows proper control of your server startup on modern Linux distributions and will automatically manage all required tasks on startup for you.

Requirements

@graywolf336
graywolf336 / BukkitSerialization.java
Last active July 30, 2025 06:47
Serialize and deserialize the player's inventory, including armor and content.
/**
* Converts the player inventory to a String array of Base64 strings. First string is the content and second string is the armor.
*
* @param playerInventory to turn into an array of strings.
* @return Array of strings: [ main content, armor content ]
* @throws IllegalStateException
*/
public static String[] playerInventoryToBase64(PlayerInventory playerInventory) throws IllegalStateException {
//get the main content part, this doesn't return the armor
String content = toBase64(playerInventory);