Minecraft Spigot插件未运行

huangapple go评论54阅读模式
英文:

Minecraft Spigot plugin not running

问题

我一周前开始学习Java,尝试制作Minecraft插件,但它不起作用。在我观看的教程中,作者说要运行脚本以获取.jar文件,问题是我无法点击运行按钮(在IntelliJ中),因为它显示"编辑器中的文件不可运行"。我认为我知道原因,但仍然无法解决。我认为问题是我需要一个文件来运行,但什么都没有显示(蓝色圆圈)。有人可以帮助吗?

英文:

I have started java a week ago and I am trying to make a Minecraft plugin but it is not working. In the tutorial I'm watching the guy says to run the script to get a .jar file for it, the problem is that I can't press the run button (on IntelliJ) because it says "The file in the editor is not runnable". I think I know the reason but I still can't fix it. I think the problem is that I need a file for it to run off but nothing showing up (blue circle). Can anyone help?

Minecraft Spigot插件未运行

I couldn't find anything similar and even asked some friends I know that are a bit more experienced but we couldn't anything that helped.

答案1

得分: 1

如果您尚未这样做,请安装插件“Minecraft Development”,它将帮助您设置依赖项和其他您为Minecraft插件所需的内容。之后,只需使用该插件创建一个新项目。

英文:

If you have not done so yet, install the plugin "Minecraft Development" it helps you set up dependencies and all the other things you need for minecraft plugins. After that, just create a new project with the plugin.

答案2

得分: 0

你现在在屏幕右侧看到 "Maven" 吗?点击并选择你的插件名称,然后选择 "Lifecycle",然后点击 "Package"。在项目的 "target" 文件夹中获取你编译好的插件。

英文:

Do you see "Maven" on the right side of your screen? Click and choose on your plugin Name, then "Lifecycle" and after this click "Package". Grab your compiled plugin in Project "target" folder.

huangapple
  • 本文由 发表于 2023年3月7日 23:04:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/75663682.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定