DynamicListStringCommandArgument
A ListStringCommandArgument whose valid values are re-read on every use instead of being snapshotted when the command is registered.
Use this for values backed by reloadable configs (bosses, items, wormholes, quests...). A plain ListStringCommandArgument built from a config collection at registration time goes stale as soon as content is imported or reloaded, which makes freshly added entries fail command validation with "not recognized" until the next full restart.
Constructors
Link copied to clipboard
public void DynamicListStringCommandArgument(Supplier<List<String>> validValuesSupplier, String hint)