How to Install the JSONAPI Plugin on Your Minecraft Server

Game Hosting Offers

Connecting your website to your Minecraft server is essential for automating tasks and offering an interactive experience to your players. The JSONAPI plugin is the perfect tool for this.

In this complete guide, we'll show you step-by-step how to install and configure JSONAPI on your Minecraft server hosted at Hosterfy, taking advantage of our simplified management panel.

What is the JSONAPI plugin for?

JSONAPI is a powerful plugin that creates a bridge between your game server and your external applications (website, store, stats panel). It allows you to execute remote commands and exchange information in real-time.

Examples of use:

  • Online Store: Automatically credit a player after a purchase.
  • Voting System: Send an in-game reward when a player votes for your server.
  • Displaying Statistics: Show the list of connected players directly on your site.

Installing and Configuring JSONAPI

Prerequisites :

  • An active Minecraft server (Spigot, Paper, etc.) hosted at Hosterfy.
  • Access to your Hosterfy Game Panel.
  • The Vault plugin installed on your server. It's an essential dependency for JSONAPI to work correctly, allowing it to communicate with other plugins (economy management, permissions, etc.).

Step 1: Download the JSONAPI Plugin

The first step is to get the plugin. Make sure you download the version compatible with your server.

Step 2: Install the Plugin on Your Server

  1. Log in to your Hosterfy Game Panel.
  2. Navigate to the "File Management" tab.
  3. Open the plugins folder.
  4. Drag and drop the JSONAPI .jar file you just downloaded into this folder.'Interface
  5. Restart your server for the first time. This action is essential for the plugin to create its configuration files.

Step 3: Generate a Dedicated Connection Port

For your website to communicate with your server, JSONAPI needs a reserved network port. At Hosterfy, we've made this process as simple as possible.

  1. In your Game Panel, go to the "Port Management" tab.
  2. Simply click the "Add a new port" button.'Onglet
  3. The panel will instantly assign you a new port. Take careful note of it, as you will need it in the next step.

Step 4: Configure the JSONAPI Plugin

Now that the port has been created and the plugin's files have been generated, all that's left is the final configuration.

  • Go back to the "File Management" tab, then into the plugins folder.
  • Open the JSONAPI or JSONAPI-RELOADED-UNIVERSAL folder that was created.
  • Configure the port:
    • Open the config.yml file.
    • Find the line port: 20059 (the number may vary).
    • Replace the value with the new port you generated in Step 3.
    • Save the file.
      'Fichier
  1. Configure the login credentials:
    • Open the users.yml file.
    • Modify the username and password.
    • Security Alert: It is imperative to choose a long and complex password (letters, numbers, symbols) to secure access to your server. Do not skip this step!
    • Save the file.
      'Fichier

Step 5: Finalizing

Restart your Minecraft server one last time for all changes to take effect.

And that's it! Your JSONAPI plugin is now installed, configured, and ready to be connected to your website.

If you encounter any difficulties, feel free to contact our technical support by opening a ticket in your client area. Our team is here to help!

Create your Minecraft server!

Create your Minecraft server!

Create your own Minecraft server with your friends or in a community and explore fascinating biomes with unmatched gameplay fluidity.

Unlimited Slots Easy management Extreme performances Support 24/7 Flexible offers

Post a comment

Name must be between 3 and 25 characters.
Please enter a valid email.
Comment must be between 30 and 500 characters.

Comments

Be the first to comment on this article!