System lottery
system:lottery
Browses lottery pools, previews the probabilities and draws after confirmation.
This type is written into the server object of a module definition, with type selecting the implementation. A system's modules reference module configuration IDs and cannot hold implementation type objects directly. For the common structure see Module definition.
JSON fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | system:lottery |
pools | ID, #tag or mixed array | no | omitted | Optional lottery pool IDs, #tags or a mixed array. |
Omitting the field adds no catalog restriction here; an explicit empty array means there are no selectable entries. The built-in module configurations use #system:default of their respective catalogs. The selectable entries of all enabled configurations of the same kind are unioned, and permissions are checked again before charging and claiming.
JSON example
{
"type": "system:lottery",
"pools": "#system:default"
}
This example is the server value of a module definition; the complete file can also set client and order.
Java entry point
com.iafenvoy.system.module.builtin.LotterySystemModule. This page is based on the Codec in the current 26.1.2 source.