- 打开
Run/Debug Configurations
->Add New Configuration
->JAR Application
. - 配置
Path to JAR
为服务器Jar包地址, 例如:/home/hhoa/minecraft/test3/paper-1.19.3-386.jar
- 配置
VM OPTIONS
为--add-opens=java.base/java.net=ALL-UNNAMED
- 配置
Working directory
为服务器Jar包工作目录, 例如:/home/hhoa/minecraft/test3
. - 在下方
Before Launch
中Add New Task
->Run Gradle task
.- 设置
Gradle Project
为当前Project - 设置
Tasks
为shadowJar
- 设置
Arguments
为-PjarDestinationDir=$SERVER_DIR/plugins
(替换其中的SERVER_DIR
为服务器目录).
- 设置
- 依次确定,回到IDEA主界面,DEBUG启动.
hhoao / attribute-enhance Goto Github PK
View Code? Open in Web Editor NEWMinecraft attribute enhance plugin