Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

CakeMC-Network/custom-properties

Repository files navigation

Custom CakeMC file Format

this format is used for config files and properties

    /**
     * Main method to demonstrate the usage of CakeProperties.
     *
     * @param args command line arguments (unused)
     */
    public static void main(String[] args) {
        try {
            CakeProperties cakeProperties = new CakeProperties("test.properties");

            // Add or update properties
            cakeProperties.append("test.message.first", "1");
            cakeProperties.append("test.message.second", "2");

            // Retrieve or create a new property
            String value = cakeProperties.getOrCreate("test.message.third", "3");

            cakeProperties.append("owo.message.first", "test");

            System.out.println("test.message.third = " + value);

        } catch (IOException e) {
            e.printStackTrace();
        }
    }

the file created will look like this:

test.message
    first = "1"
    second = "2"
    third = "3"

owo.message
    first = "test"


About

📖 cakemc's own file format for properties

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages