M
M
Mikhail2021-01-01 14:27:04
Java
Mikhail, 2021-01-01 14:27:04

How to fix error in TextComponent?

I am a beginner Java coder.
I am writing a plugin for a certain minecraft server for the first time.

I watched a video with improved work with konyigs through a separate class.
wrote wrote listening to explanations and then bam and error

Cannot resolve method sendMessage(net.md_5.bungee.api.chat.textcomponent)


I thought that I wrote something wrong, revised everything, but everything is correct :(
I even tried to completely rewrite the entire class even with the fact that I don’t need it and the same thing :(

Error line:
player.sendMessage(new textcomponent(componentservializer.parse(message.substring(5))));

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question