Skip to content

MisterCommand/pkl-minecraft-server-properties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A Minecraft Java Edition server.properties configuration template written in Pkl.

About Pkl

https://pkl-lang.org/index.html

Usage

Install Pkl

Please follow this guide to install Pkl CLI in your machine.

Amend the template

Download this repository, create a new pkl file and amend this template. Docs.

// server.pkl

amends "serverTemplate.pkl"

// This would override the default MOTD
`motd` = "Welcome to the server!"

Generate server.properties

Generate the server.properties file with your amendments by the Pkl CLI.

$ pkl eval -f properties server.pkl

Examples

Generate default server.properties

The values of the default server.properties file are determined according to the Minecraft Wiki as of version 24w04a.

$ pkl eval -f properties serverTemplate.pkl

Please rename the file to server.properties.

About

A Pkl template for the Minecraft server.properties file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published