Skip to content

Storage

Create a file to store key/value pairs.

Example

py
user = User('com.author.example_name')
store = Storage(user, 'store.yaml')

store.setItem('version', '1.0.0')

version = store.getItem('version')
print(version)

Parameters

NameDescription
userThe User class for the storage.
filenameThe name of the file to store all values.

Methods

getItem

setItem

removeItem

clear

key

exists

show

Not associated with or approved by Mojang Studios or Microsoft