{"id":1563,"date":"2018-09-05T13:32:56","date_gmt":"2018-09-05T13:32:56","guid":{"rendered":"https:\/\/scunster.co.uk\/?p=1563"},"modified":"2018-09-05T13:36:46","modified_gmt":"2018-09-05T13:36:46","slug":"minecraft-pe-creating-a-nukkitx-server-linux","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=1563","title":{"rendered":"Minecraft PE \/ Creating a nukkitx server (Linux)"},"content":{"rendered":"<p>Quick guide to create and run your own Minecraft PE server using NukkitX<\/p>\n<p>The guide was created on a Debian 9 server but most distro&#8217;s should be very similar.<br \/>\nIt is also assumed that you have at least &#8220;Java 8&#8221; installed along with &#8220;screen&#8221;<\/p>\n<p>I&#8217;d recommend creating a user just for running nuxxitx or for minecraft in general, it&#8217;s not a necessary step but just good practice with security in mind!<\/p>\n<pre>sudo adduser nuxxitx<\/pre>\n<p>Then set the password for the new nukkitx user account<\/p>\n<p>Now, log back in as user nuxxitx or sudo to that user<\/p>\n<p>Create a directory called nuxxitx in the users home directory<\/p>\n<pre>mkdir nuxxitx<\/pre>\n<p>Download the latest version of nuxxitx from here https:\/\/ci.nukkitx.com\/job\/NukkitX\/job\/Nukkit\/job\/master\/<br \/>\nor wget if you know the url<\/p>\n<pre>\r\ncd nukkitx\r\nwget https:\/\/ci.nukkitx.com\/job\/NukkitX\/job\/Nukkit\/job\/master\/lastSuccessfulBuild\/artifact\/target\/nukkit-1.0-SNAPSHOT.jar\r\n<\/pre>\n<p>We now need to run the file once to create the server.properties file that we will need to edit.<\/p>\n<pre>java -Xms1G -Xmx1G -jar nukkit-1.0-SNAPSHOT.jar<\/pre>\n<p>Press CTRL + C to quit the server<\/p>\n<p>Make any changes that you require to the server.properties file such as port, server name etc.<\/p>\n<p>Now let&#8217;s create a script to start and stop the server in a screen session<\/p>\n<p>Using any editor create a file called start.sh<\/p>\n<pre>\r\n#!\/bin\/sh\r\nscreen -d -m -S nuxxitx java -Xms1G -Xmx1G -jar nukkit-1.0-SNAPSHOT.jar\r\n<\/pre>\n<p>Change Xms1G and Xmx1G if you need more RAM (Xms is minimum and Xmx the maximum allocated)<\/p>\n<p>Make the script executable<\/p>\n<pre>chmod +x start.sh<\/pre>\n<p>Now launch the server!<\/p>\n<pre>.\/start.sh<\/pre>\n<p>To stop your server just use:<\/p>\n<pre>screen -S nuxxitx -X kill<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Quick guide to create and run your own Minecraft PE server using NukkitX The guide was created on a Debian 9 server but most distro&#8217;s should be very similar. It is also assumed that you have at least &#8220;Java 8&#8221; installed along with &#8220;screen&#8221; I&#8217;d recommend creating a user just for running nuxxitx or for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[163],"tags":[415,421,422,402],"class_list":["post-1563","post","type-post","status-publish","format-standard","hentry","category-game-servers","tag-minecraft","tag-nukkit","tag-nukkitx","tag-server"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1563"}],"version-history":[{"count":2,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1563\/revisions"}],"predecessor-version":[{"id":1565,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1563\/revisions\/1565"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}