напиши плагин на кастомную броню майнкрафт спигот 1.12.2, сделай шлем,тело,поножи и…
- User
напиши плагин на кастомную броню майнкрафт спигот 1.12.2, сделай шлем,тело,поножи и сапоги красного цвета с названием “Адидас” и описанием “+500хп, +500 к урону” Добавь им неразрушимость и сделай чтобы когда носишь фулл сет вокруг тебя появлялись частицы огня в каждые 5 тиков. скинь итоговый код и раздели его на классы, добавь команду выдачи брони.
- Assistant
- User
раздели на классы
- Assistant
- User
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project MiningCore: Compilation failure: Compilation failure: [ERROR] /C:/Users/game/IdeaProjects/MiningCore/src/main/java/foleon/miningcore/ArmorListenerClass.java:[24,30] cannot find symbol [ERROR] symbol: class PlayerArmorEquipEvent [ERROR] location: class foleon.miningcore.ArmorListenerClass [ERROR] /C:/Users/game/IdeaProjects/MiningCore/src/main/java/foleon/miningcore/MiningCore.java:[42,45] constructor CommandExecutorClass in class foleon.miningcore.CommandExecutorClass cannot be applied to given types; [ERROR] required: org.bukkit.plugin.java.JavaPlugin [ERROR] found: no arguments [ERROR] reason: actual and formal argument lists differ in length [ERROR] /C:/Users/game/IdeaProjects/MiningCore/src/main/java/foleon/miningcore/ArmorListenerClass.java:[25,9] cannot find symbol [ERROR] symbol: class Player [ERROR] location: class foleon.miningcore.ArmorListenerClass [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
- Assistant
Возникла ошибка в вашем проекте. Вот несколько возможных причин ошибки и рекомендации по их устранению:
-
Ошибка
symbol: class PlayerArmorEquipEventуказывает на то, что классPlayerArmorEquipEventне найден. Убедитесь, что вы правильно импортировали классPlayerArmorEquipEventиз плагина, который обрабатывает события изменения брони. Если вы не используете сторонний плагин для этого события, возможно, вам нужно создать свой собственный класс событияPlayerArmorEquipEvent. -
Ошибка
constructor CommandExecutorClass in class foleon.miningcore.CommandExecutorClass cannot be applied to given typesуказывает на ошибку в конструкторе классаCommandExecutorClass. Убедитесь, что вы передаетеJavaPluginв конструкторCommandExecutorClassв классеMainClass. -
Ошибка
symbol: class Playerуказывает на то, что классPlayerне найден. Убедитесь, что вы правильно импортировали классPlayerиз плагина Bukkit, чтобы вы могли использовать его в классеArmorListenerClass.
Устраните эти ошибки, чтобы ваш проект успешно скомпилировался.
-