{"id":77,"date":"2021-08-16T16:02:01","date_gmt":"2021-08-16T15:02:01","guid":{"rendered":"https:\/\/wordpress.pedrorotoli.com\/?p=77"},"modified":"2023-02-07T04:12:02","modified_gmt":"2023-02-07T04:12:02","slug":"building-spigot-minecraft-server-on-debian-10","status":"publish","type":"post","link":"https:\/\/wordpress.pedrorotoli.com\/?p=77","title":{"rendered":"Building Spigot Minecraft Server on Debian 10"},"content":{"rendered":"\r\n<p>Start by installing the required packages:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt install git\r\n\r\nwget https:\/\/launchpad.net\/~linuxuprising\/+archive\/ubuntu\/java\/+files\/oracle-java16-installer_16.0.2-1~linuxuprising0_amd64.deb\r\n\r\nsudo apt install .\/oracle-java16-installer_16.0.2-1~linuxuprising0_amd64.deb<\/pre>\r\n\r\n\r\n\r\n<p>Download the latest Java version from here:<\/p>\r\n<p><a href=\"https:\/\/launchpad.net\/~linuxuprising\/+archive\/ubuntu\/java\/+packages\">https:\/\/launchpad.net\/~linuxuprising\/+archive\/ubuntu\/java\/+packages<\/a><\/p>\r\n<p>Configure the system to use the version just installed using the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo update-alternatives --config java<\/pre>\r\n\r\n\r\n\r\n<p>Then select the appropriate version, in this case it&#8217;s java 16 from Oracle.<\/p>\r\n\r\n\r\n\r\n<p>Download the latest version of BuildTools:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">wget https:\/\/hub.spigotmc.org\/jenkins\/job\/BuildTools\/lastSuccessfulBuild\/artifact\/target\/BuildTools.jar<\/pre>\r\n\r\n\r\n\r\n<p>Configure the environment to be able to run the tool:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\r\n<pre class=\"wp-block-preformatted\">git config --global --unset core.autocrlf<\/pre>\r\n\r\n\r\n\r\n<p>Now everything is ready to build the server in the desired version. You can build the latest version with:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">java -jar BuildTools.jar --rev latest<\/pre>\r\n\r\n\r\n\r\n<p>Or select a specific version with:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">java -jar BuildTools.jar --rev 1.16.5<\/pre>\r\n\r\n\r\n\r\n<p>After it finishes building you can copy it to the appropriate folder and start the server.<\/p>\r\n<\/div><\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>Start by installing the required packages: sudo apt install git wget https:\/\/launchpad.net\/~linuxuprising\/+archive\/ubuntu\/java\/+files\/oracle-java16-installer_16.0.2-1~linuxuprising0_amd64.deb sudo apt install .\/oracle-java16-installer_16.0.2-1~linuxuprising0_amd64.deb Download the latest Java version from here: https:\/\/launchpad.net\/~linuxuprising\/+archive\/ubuntu\/java\/+packages Configure<\/p>\n","protected":false},"author":1,"featured_media":78,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[13,11,10,12],"class_list":["post-77","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-buildtools","tag-debian","tag-minecraft","tag-spigot"],"_links":{"self":[{"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/posts\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=77"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/posts\/77\/revisions"}],"predecessor-version":[{"id":3077,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/posts\/77\/revisions\/3077"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/media\/78"}],"wp:attachment":[{"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}