> For the complete documentation index, see [llms.txt](https://kree.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kree.gitbook.io/documentation/gameobject-components/prefs.md). Agents can also search and read this documentation through its [MCP server](https://kree.gitbook.io/documentation/~gitbook/mcp).

# Prefs

This component allows you to store variables much easier in a data.txt file.

> Component Author: [NikolaTesla13](https://github.com/NikolaTesla13)\
> Release Date: June 10, 2020

{% tabs %}
{% tab title="Usage" %}

```java
new Prefs()
```

{% endtab %}

{% tab title="Methods" %}

```java
// Store a value in a key which then stored in data.txt file
storeFloat(String key, float value); 

// Retrieve a float with the matching key
getFloat(String key);
```

{% endtab %}
{% endtabs %}
