Skip to content

Commit

Permalink
Fixed title packet
Browse files Browse the repository at this point in the history
  • Loading branch information
MCMDEV committed Mar 13, 2022
1 parent b57ff5c commit 644f86a
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .idea/artifacts/i18n_paper.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 27 additions & 34 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions i18n-adventure/i18n-adventure.iml

This file was deleted.

2 changes: 1 addition & 1 deletion i18n-adventure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-api</artifactId>
<version>4.7.0</version>
<version>4.10.1</version>
</dependency>
<dependency>
<groupId>de.helixdevs</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

public class AdventureTranslationConsumer implements TranslationConsumer {

private final GlobalTranslator globalTranslator = GlobalTranslator.get();
private final GlobalTranslator globalTranslator = GlobalTranslator.translator();
private final TranslationRegistry adventureRegistry = TranslationRegistry.create(Key.key("i18n", "main"));

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public void unloadTranslations() {
}

public void reload() {
loadCommands();
unloadTranslations();
loadTranslations();
}

public void disable() {
Expand Down
13 changes: 0 additions & 13 deletions i18n-paper/i18n-paper.iml

This file was deleted.

10 changes: 5 additions & 5 deletions i18n-paper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
<artifactId>i18n-paper</artifactId>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.16.5-R0.1-SNAPSHOT</version>
<version>1.18.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>4.6.1-SNAPSHOT</version>
<version>4.8.0</version>
</dependency>
<dependency>
<groupId>de.helixdevs</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

public class TitleAdapter extends PacketAdapter implements ITranslationAdapter {
public TitleAdapter(Plugin plugin) {
super(plugin, PacketType.Play.Server.TITLE);
super(plugin, PacketType.Play.Server.SET_TITLE_TEXT, PacketType.Play.Server.SET_SUBTITLE_TEXT);
}

@Override
Expand Down
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<id>dmulloy2-repo</id>
<url>https://repo.dmulloy2.net/repository/public/</url>
</repository>
<repository>
<id>papermc</id>
<url>https://papermc.io/repo/repository/maven-public/</url>
</repository>
</repositories>

</project>

0 comments on commit 644f86a

Please sign in to comment.