# Installation

## Installation (Server)

* Download the plugin from the resource page (make sure to always use the latest stable version)
* Download [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/)
* Put both FancyWaystones and ProtocolLib jars into your plugins folder
* Start the server
* Enjoy the plugin

## Installation (Proxy)

{% hint style="warning" %}
You will need a MySQL database to use this on Proxy
{% endhint %}

* Put the plugin jar inside your proxy plugins folder
* Edit the config.yml inside the FancyWaystones data folder (on server, not on proxy)

```yaml
# If you are using BungeeCord server, set this to true
# don't forget to use MySQL Storage type to make it work
# properly
Proxy Mode: false
```

* Also change the Storage location from `FILE` to `MYSQL` and then fill the MySQL information fields (username, password, etc)

```yaml
Storage:
  # FILE or MYSQL
  Location: MYSQL
  # Block Storage is saved in local
  Block Directory: blocks
  File:
    Waystone Directory: waystone_data
    Player Directory: player_data
    Names Directory: waystone_names
  MySQL:
    #Url: custom url here?
    Host: localhost
    Port: 3306
    Username: USERNAME HERE
    Password: PASSWORD HERE
    Database Name: DATABASE NAME HERE
    Table:
      Waystone: waystones
      Player: players
      Names: waystone_names
```

* Restart your server and your proxy
