Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione statica Server Lento

Server.GetPackages

Returns a list of Packages running, optionally returns all Packages installed in the server

Non ancora tradotto

Sintassi

Lua
Server.GetPackages(only_loaded = true, package_type_filter = PackageType.All)

Parametri

Nome Tipo Predefinito Descrizione
only_loaded facoltativo boolean true Set to true the function return only loaded and running packages. Caution: setting to false will retrieve Packages list from disk, which is a slow operation!
package_type_filter facoltativo PackageType PackageType.All Which Package type to return. Leave it default to return all types.

Valore restituito

  • table[] a list of Packages data
    Campi della tabella
    • title string
    • name string
    • type PackageType
    • version string
    • author string