Solved The problem with Components in paper 1.21.4

anlear

New member
Sep 4, 2024
3
0
1
Russian Federation
Greetings to all. Yesterday I started the process of transferring my plugins from Paper 1.20.4 to Paper 1.21.4.
I encountered the following problem. Many methods have ceased to exist trivially.
For example: ItemMeta.name (component); Audience.SendMessage(component).
If I figured out with Audience that the SendMessage() method now accepts a TextComponent, then with ItemMeta it's not clear at all what to use for Component usage.
Also, the Player class is no longer suitable for the Audience for some reason.
If anyone knows what the reason is, then please tell me. If there is any changelog, please provide it to me, I did not find anything myself except a Paper Announcement on the main page of the forum. I checked everything there after version 1.20.4, but there was nothing to indicate my problem.

Here is my maven import of paper:
<repository>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.21.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
 
Version Output
-

Attachments

  • изображение_2025-01-11_132515166.png
    изображение_2025-01-11_132515166.png
    68.3 KB · Views: 1
  • изображение_2025-01-11_132523790.png
    изображение_2025-01-11_132523790.png
    22.7 KB · Views: 1

MCmitNoah

New member
Feb 14, 2022
7
1
3
Have you checked if your IDE has updates. If yes install them and see if you still have issues.