2019年2月27日水曜日

Memo: How to construct Bukkit/SpigotMC Plugin development Environment on Visual Studio Code

Table of contents

  1. Install OpenJDK
  2. Install Apache Maven
  3. Install Visual Studio Code
  4. Install Visual Studio Code Extention Pack
  5. Settings

Install OpenJDK

Download, install and add to the path.
https://developers.redhat.com/products/openjdk/download/


Install Apache Maven

Download, install and add to the path.
https://maven.apache.org/download.cgi

Install Visual Studio Code

https://code.visualstudio.com/Download

Install Visual Studio Code Extention Pack

  1. Language Pack (for non English-speaker)
  2. Java Extention Pack

Settings

Edit workspace setings(JSON)
{
  "java.jdt.ls.vmargs": "-noverify -Dfile.encoding=UTF-8 -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication",
  "java.debug.settings.enableHotCodeReplace": true,
  "files.autoGuessEncoding": true,
  "files.encoding": "utf8",
  "java.configuration.updateBuildConfiguration": "automatic",
  "javac-linter.javac": "javac -Dfile.encoding=UTF-8",
}

Create pom.xml and build by Maven.
https://www.spigotmc.org/wiki/spigot-maven/

So, enjoy develop your plugin!

0 件のコメント:

コメントを投稿