All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scripts.core.util.container.js Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
load("plugins/Pouvoir/scripts/core/basic.js");

PouvoirContainer = static("PouvoirContainer");

/** @type {Container} 持久化容器 */
function container() {
    return PouvoirContainer.container
}

/**
 * 用法:
 *
 * 用户名,键,值 都可自定义,为字符串即可
 * (用户名建议为uuid或玩家名)
 *
 *               用户名 键
 *  container().get(user,key)  - 从容器中获取值
 *                   用户名 键
 *  container().delete(user,key) - 删除容器中的值
 *               用户名 键 值
 *  container().set(user,key,value) - 设置容器中的值
 *
 */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy