Как исправить ошибку в создании плагина манйкрафт.

Den3ik

Участник
Автор темы
46
7
ПРи компеляции выдаёт ошибку как исправить?

[INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/denis/IdeaProjects/ChatToDiscord/src/main/java/myclass/chattodiscord/ChatToDiscord.java:[61,14] cannot find symbol symbol: method getChannel(java.lang.String) location: variable event of type org.bukkit.event.player.AsyncPlayerChatEvent [ERROR] /home/denis/IdeaProjects/ChatToDiscord/src/main/java/myclass/chattodiscord/ChatToDiscord.java:[61,72] cannot find symbol symbol: method build() location: variable embed of type net.dv8tion.jda.api.entities.MessageEmbed [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.187 s [INFO] Finished at: 2023-10-17T15:33:06+03:00 [INFO] ------------------------------------------------------------------------ [WARNING] [WARNING] Plugin validation issues were detected in 2 plugin(s) [WARNING] [WARNING] * org.apache.maven.plugins:maven-compiler-plugin:3.8.1 [WARNING] * org.apache.maven.plugins:maven-resources-plugin:3.3.0 [WARNING] [WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE] [WARNING] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project ChatToDiscord: Compilation failure: Compilation failure: [ERROR] /home/denis/IdeaProjects/ChatToDiscord/src/main/java/myclass/chattodiscord/ChatToDiscord.java:[61,14] cannot find symbol [ERROR] symbol: method getChannel(java.lang.String) [ERROR] location: variable event of type org.bukkit.event.player.AsyncPlayerChatEvent [ERROR] /home/denis/IdeaProjects/ChatToDiscord/src/main/java/myclass/chattodiscord/ChatToDiscord.java:[61,72] cannot find symbol [ERROR] symbol: method build() [ERROR] location: variable embed of type net.dv8tion.jda.api.entities.MessageEmbed [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 Process finished with exit code 1