# Prison Setup

<figure><img src="/files/G0SDT4V3z7D7BWvjfq7z" alt=""><figcaption></figcaption></figure>

## **Installation Instructions**

Follow the steps below to set up the **Premium Prison Setup** on your server. You will need to have purchased our [**Premium Prison Setup**](https://builtbybit.com/resources/premium-prison-setup-nekio.44464/) first. Once you have made the purchase, download it and continue with the instructions.

{% hint style="info" %}
It is highly recommended to install **Paper** **1.12.2** with java 11 as your server's base software for optimal performance. You can download the latest version from [**here**](https://papermc.io/downloads/all). We suggest using **Paper** because of its advanced optimization features, which are specifically designed to handle high player counts and improve server stability.
{% endhint %}

## ![](https://wiki.arefy.net/~gitbook/image?url=https%3A%2F%2F1987155368-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fassets%252F-MR_H5ewvyOa3SDGl4ba%252F-MWAXlpNfmXjaa3JGM4S%252F-MWAYLWHghlnVa8FNon5%252FPrueba-1.png%3Falt%3Dmedia%26token%3D41a1de74-3189-4dd4-a167-e3f0520ebb58\&width=300\&dpr=1\&quality=100\&sign=3802d380\&sv=1) 1. Uploading all downloaded files into your hosting folder

Upload all files that you have download into your hosting folder, you just have to drag and drop them into the FTP that they gave you, as simple as that

<figure><img src="https://i.imgur.com/J2CPQo9.gif" alt=""><figcaption></figcaption></figure>

## ![](https://wiki.arefy.net/~gitbook/image?url=https%3A%2F%2F1987155368-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fassets%252F-MR_H5ewvyOa3SDGl4ba%252F-MWAXlpNfmXjaa3JGM4S%252F-MWAYSEk5tVsi3CUtOU7%252FPrueba-1.png%3Falt%3Dmedia%26token%3D1ebf222f-5e8c-4408-b103-e573b8ac6eaf\&width=300\&dpr=1\&quality=100\&sign=4aee3df2\&sv=1) 2. Installing dependencies

Due redistribution rights that builtbybit has, we can't include some plugins in the setup, so you will have to download them and install them

{% hint style="warning" %}
Download all dependencies and install them in your **/plugins** folder
{% endhint %}

> **Citizens** [*(Download it here)*](https://ci.citizensnpcs.co/job/citizens2/2901/)
>
> **Tab** [*(Download it here)*](https://www.spigotmc.org/resources/tab-1-5-1-21-1.57806/)

## ![](https://wiki.arefy.net/~gitbook/image?url=https%3A%2F%2F1987155368-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fassets%252F-MR_H5ewvyOa3SDGl4ba%252F-MWAXlpNfmXjaa3JGM4S%252F-MWAYXmGtPlIlKN6ydQQ%252FPrueba-1.png%3Falt%3Dmedia%26token%3D3443d9f1-c86e-4c4f-99a2-4c70cea1ad46\&width=300\&dpr=1\&quality=100\&sign=d93f368d\&sv=1) 3. Setting up MySQL for our custom plugins

**Setting up MySQL** is crucial for optimizing our custom plugins. It allows for better performance by efficiently handling data, especially with a larger player base.&#x20;

To configure it, create a MySQL database on your hosting provider and enter the database credentials (name, username, password, and host) into the plugin config files. This will improve server optimization and ensure smoother data management for features like robots, prestiges and private mines.

You will have to setup mysql in these three plugins:

* **Arefy Robots** *(*[*config.yml*](https://pastebin.com/7gh55JJ0)*,* [*view.yml*](https://pastebin.com/w4qhQvKE)*)*
* **Arefy Prestiges** *(*[*config.yml*](https://pastebin.com/wpdwd5xP)*,* [*messages.yml*](https://pastebin.com/qc7Q0t1H)*)*
* **Arefy Private Mines** *(*[*config.yml*](https://pastebin.com/aYf3tziP)*)*

*If you are using Pebble Host, there is an example of how can you get MySQL details*

<figure><img src="/files/jLmr1IDyqp5mIQqsohaQ" alt=""><figcaption><p><em>Database information on Pebble Host (it should be the same on other hoster providers)</em></p></figcaption></figure>

Now that we have connection details of our myqsl database, we can fill them

```
database:
  host: "eu01-sql.pebblehost.com"
  port: 3306
  username: "customer_837440_mines"
  password: "password"
  database: "customer_837440_mines"
  use-ssl: true
```

## 4. ✅ Installation completed

Now you will be able to start the server and join through your host IP

{% hint style="info" %}
You can make yourself **Owner and Operator** by running on console the next commands
{% endhint %}

```
op %player%
```

```
lp user %player% parent add Owner
```

## Editing files and giving pets, armors, skins, robots...

All files are configurable, here is a list of most important files that you can edit (like enchantments rewards, robots, private mines primary blocks, etc)

<details>

<summary>Changing Private Mine's Schematic</summary>

* First, create your new schematic, **use beacons as mine corners** (as shown on the image below)**, and furnace as player spawn**

*(Don't use beacons and furnaces to decorate your mines, there must be only two beacons for mine borders and furnace for players spawn in the entire schematic)*

* Copy the schematic and save it, then paste it to `/plugins/PrivateMines/schematics`
* With server stopped, remove `Minas` world and [Private Mines database](#user-content-fn-1)[^1]
* Remove old **Privates Mines** regions on `/plugins/WorldGuard/worlds/Minas/regions.yml`
* Generate new mines with the new schematic you've created with `/pmine generate <number of mines>` *(pregenerating your mines will help you to prevent lagging when many people claiming them on seasons releases and/or large playerbases)*
* ✅ Claim your new mine with **/pmine**

</details>

<figure><img src="https://m.arefy.net/hM937IO.png" alt=""><figcaption><p><strong>Private Mine schematic</strong> example <em>(there must be two Beacons as mine corners, and one Furnace as player spawn</em>)</p></figcaption></figure>

<details>

<summary>How to level up your pickaxe / Add blocks to your pickaxe/player</summary>

*You can give blocks yourself to your pickaxe using **/bb pickaxe \<player> add|set|remove block|level \<amount>***

*Or in case you want to give player blocks broken, use  **/bb player \<player> add|set|remove block|level \<amount>***

</details>

<details>

<summary>Robots</summary>

*All Robots revenues (tokens/gems) can be edited on **ARobots > config.yml***

*You can also edit main gui on **ARobots > view\.yml***

</details>

<details>

<summary>Private Mines blocks</summary>

*Main Private Mines blocks can be modified on **Private Mines > config.yml***

</details>

<details>

<summary>Prestiges cost expression</summary>

Cost expression, rewards on prestiging and actionbar can be modified on  ***PrisonPrestige > config.yml***

</details>

<details>

<summary>Pets max levels, cost to levelup (broken blocks) and basehead</summary>

You can change head, max level, and level cost (blocks broken) on **APets > config.yml**

Here's an example of the [Token Mythic pet](https://pastebin.com/WZtwCiH5)

</details>

<details>

<summary>Enchantments rewards</summary>

If you want to edit some enchantments rewards, you can do that on **Brokenblocks > config.yml**

</details>

<details>

<summary>How to give currencies to other players</summary>

You can give currencies to other players by using **/tokens add %player% %amount%, /blocks, /gems**

</details>

<details>

<summary>How to give yourself Pets, Armors, Skins, Robots</summary>

* **Pets**: /apets give \<tab to see all pets types>
* **Armors**: /varmor give \<tab to see all armor types>
* **Skins**: /voucher give Skins %player%
* **Robots**: /voucher give Robots/Robotsepic 1 %player%

</details>

[^1]: You can pregenerate your Private Mines database by clearing/removing tbl\_generated\_mines and tbl\_mines


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nekiosetups.com/how-to-install-or-minecraft-setups/prison-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
