Minecraft Bedrock Edition (Mobile Version) Plugin Server Setup Guide
Introduction
Initially, I played Minecraft in local worlds, but later learned to play with classmates in multiplayer mode, which required us to be on the same local network each time.
Later, I came across an app called “Minecraft Multiplayer Box,” which allowed me to join and play on servers for the first time.
After that, I had an idea: to set up my own server to play.
Plugin Server
Nukkit is a high-performance, Java-based server for the Bedrock Edition.
Its structure is very similar to Bukkit/Spigot and is also written in Java.
It offers powerful multi-threading capabilities, allowing better utilization of your host resources to make the players’ gaming experience more enjoyable.
The source code is open under the LGPL license, making it easy for developers and server owners to learn and develop for Nukkit.
Nukkit adopts a structure similar to PocketMine-MP, providing efficient plugin solutions and fixes for various issues,
and it is also easy for everyone to contribute to Nukkit.
About One-Click Server Startup Script
I have prepared server packages for you here, all downloaded from the official website, suitable for both Windows and Linux.
File Description:
-
Nukkit-xxxxxxx.jar: Server startup file, runs based on Java.
-
Strat.bat/sh: One-click startup (I might have misspelled it, it should be start, so it’s like this, and the image can’t be changed).
-
update.bat/sh: Automatic server file update.
-
aria2c.exe: Windows download program, wget is used on Linux.
Download Links:
-
Minecraft Server Package (Linux): Link: https://pan.baidu.com/s/1FGNvVPoYn1vElEPsOHEmpg
-
Minecraft Server Package (Windows): Link: https://pan.baidu.com/s/1g9muEz324orZ1bsQtTS9Kw
Server Configuration Guide
Windows Section
-
Ensure that Java Runtime Environment (JRE) is installed on your computer or server. Follow the specific tutorial below:
- Windows: Portal
-
Update the server files. Double-click the update.bat file to automatically update, which will use aria2 for downloading.
-
Start the server. Double-click the Strat.bat file to start the server with one click.
Alternatively, start using the command:
1
java -jar nukkit-1.0-SNAPSHOT.jar
Or
1
java -Xmxmaximum_memory -Xmsinitial_memory -jar nukkit*.jar
-
After startup, the first screen: Select a language, choose one you can understand, and press Enter to complete the settings.
-
On the second screen, the server is basically up and running. On subsequent runs, it will directly enter this screen.
Linux Section
-
Ensure that the Java environment is installed on your Linux server.
- Linux: Portal
Or use the following command to install:
1
2sudo apt-get update
sudo apt-get install openjdk-8-jre --fix-missing -
Update the server files. Navigate to the server directory.
Enter the command
1
sh update.sh
If it cannot be executed, please grant it permissions.
1
chmod +777 ./update.sh
Here, wget is used. If you don’t have it, install it with the command
1
sudo apt-get install wget
-
Start the server. Use the command to start with one click:
1
sh Strat.sh
Or
1
java -jar nukkit-1.0-SNAPSHOT.jar
Or
1
java -Xmxmaximum_memory -Xmsinitial_memory -jar nukkit*.jar
If it cannot be executed, please grant it permissions.
1
chmod +777 ./Strat.sh
-
After startup, the first screen: Select a language, choose one you can understand, and press Enter to complete the settings.
-
On the second screen, the server is basically up and running. On subsequent runs, it will directly enter this screen.
-
Lock the server task (for SSH). First, enter
stop
to shut down the server.Install screen with the command:
1
sudo apt-get install screen
After installation, enter
clear
to clear the screen. This step is very important and must be executed.Then, enter
screen -R MC
(Note: MC can be replaced with any word, pay attention to the case of R).It may take a while to go blank, and after it goes blank, it will automatically return to the original interface.
Then, start the server and enter the startup command.
After starting the server, you can close SSH.
Next time you start, enter
screen -R MC
to restore it.
Connecting to the Server
Here, we use the Win10 version of Minecraft for demonstration. The operation on the mobile version is the same.
Enter the game, click on servers, and then add a server.
You can customize the name, enter the server’s IP address, and if the port is not specified in the configuration file, leave it unchanged.
Click to play.
Regarding port forwarding, if it is a local server, you need a public IP address, then enter the router’s backend page, find port forwarding, and set it up. Here, note that you need to select both protocols. Previously, selecting only one protocol prevented connection, but after searching online, I learned that the Bedrock Edition works with multiple protocols, so selecting both will allow connection.
If it is a cloud server, go to the server’s management panel and open the security group.
About Configuration Files
Windows Section
Enter stop
to stop the server.
You will find that many files have been added to the server’s running directory. Find the server.properties
file and open it with Notepad.
The specific configuration method is left for you to search online.
Linux Section
Enter stop
to stop the server.
You will find that many files have been added to the server’s running directory. Find the server.properties
file and edit it with the command.
1 | vi server.properties |
The specific configuration method is left for you to search online.