# Global variables

## What's a global variable ?

First , a global variable is stored on the Bungeecord server, in the `/plugins/BungeeSK/variables.json` file. It is stored with a key and a value, with key as a string and value as string, number or boolean.

## Setting a global variable

You can create a global variable like this:

{% code title="example.sk" %}

```python
set global variable "money.%player%" to 100
```

{% endcode %}

### Getting a global variable

{% code title="example.sk" %}

```bash
set {_money} to global variable "money.%player%"
send "You have %{_money}%$ on your account !" to player
if {_money} >= 1000:
    set {vip::%player%} to true
```

{% endcode %}
