HomeJavaModsStarMCLib

Warning

Do not use this plugin with StarCore. They are mutually exclusive and StarCore already provides StarMCLib

This is a plugin meant solely for preventing to have to depend on StarCore and the heavier things that it provides.

Requirements

Java 21

Features

CmdFlags

These are best used in conjunction with commands. You define each flag by creating new instances of the Flag Types (ComplexFlag or PresenceFlag) or you can create your own class that either implements the Flag interface, or extends the AbstractFlag class. Then you instantiate the CmdFlags class providing the flags that you defined. Then when a command is run, you call the CmdFlags#parse(String[]) method passing in the arguments from the command. This returns a FlagResult which consists of the modified args that remove the flags and a Map of FlagValues to their Flag. It is recommended that you reassign the args variable. The FlagResult allows you to chain results together using the addFrom(FlagResult) method and has two helper methods to deal with the flags directly. An isPresent method to return if the flag is present. And a getValue method that returns the value of the flag

Command

The base command is /starmclib with the base permission node: starmclib.command

/starmclib actors

/starmclib actors list [page]

/starmclib actors sendmessage

/starmclib profiles

/starmclib profiles list [page]

Provided Libraries


This plugin is provided free of charge and under the MIT Open Source License. I will never sell this library anywhere. If you see it being sold, it is not by me and please report any of these cases to me directly.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more