addListValue

open suspend override fun addListValue(name: String, value: String)(source)

Adds the supplied value to the list with the supplied name. If no list with this name exists, the entry already exists in the list, or this operation would grow the corresponding list above the current capacity, an appropriate exception will be thrown.

The Counts and Lists API will eventually supersede the specific player tracking APIs of the AgonesSdk, as these cover a broader use-case and offer similar interfaces for tracking. Therefore, this method should be preferred.

Parameters

name

The unique identifier of this instance's list which should receive the new entry.

value

The new value that should be added to the specified list.

See also

Throws

If null is supplied as the list identifier and therefore no list can be derived from it or if the value is null.