Skip to content

Commit

Permalink
Fixed BossbarAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
MCMDEV committed Aug 14, 2022
1 parent dde759f commit 6c39109
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 12 deletions.
4 changes: 2 additions & 2 deletions i18n-adventure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>i18n</artifactId>
<groupId>de.helixdevs</groupId>
<version>1.1</version>
<version>1.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -26,7 +26,7 @@
<dependency>
<groupId>de.helixdevs</groupId>
<artifactId>i18n-common</artifactId>
<version>1.1</version>
<version>1.2</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion i18n-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>i18n</artifactId>
<groupId>de.helixdevs</groupId>
<version>1.1</version>
<version>1.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions i18n-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>i18n</artifactId>
<groupId>de.helixdevs</groupId>
<version>1.1</version>
<version>1.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -20,7 +20,7 @@
<dependency>
<groupId>de.helixdevs</groupId>
<artifactId>i18n-api</artifactId>
<version>1.1</version>
<version>1.2</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions i18n-paper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>i18n</artifactId>
<groupId>de.helixdevs</groupId>
<version>1.1</version>
<version>1.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -32,7 +32,7 @@
<dependency>
<groupId>de.helixdevs</groupId>
<artifactId>i18n-adventure</artifactId>
<version>1.1</version>
<version>1.2</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@

import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.events.PacketEvent;
import org.bukkit.plugin.Plugin;

public class BossbarAdapter extends PacketAdapter implements ITranslationAdapter {

public BossbarAdapter(Plugin plugin) {
super(plugin, PacketType.Play.Server.BOSS);
}

@Override
public void onPacketSending(PacketEvent event) {
handleChatComponent(event.getPlayer(), event.getPacket(), 0);
PacketContainer packet = event.getPacket();
packet.getStructures().modify(1, internalStructure -> {
handleChatComponent(event.getPlayer(), internalStructure, 0);
return internalStructure;
});
}
}
4 changes: 2 additions & 2 deletions i18n-velocity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>i18n</artifactId>
<groupId>de.helixdevs</groupId>
<version>1.1</version>
<version>1.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>de.helixdevs</groupId>
<artifactId>i18n-adventure</artifactId>
<version>1.1</version>
<version>1.2</version>
</dependency>
<dependency>
<groupId>com.velocitypowered</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@Plugin(
id = "i18n",
name = "I18n",
version = "1.1",
version = "1.2",
description = "Velocity implementation of I18n",
authors = {"MCMDEV"}
)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>de.helixdevs</groupId>
<artifactId>i18n</artifactId>
<packaging>pom</packaging>
<version>1.1</version>
<version>1.2</version>
<modules>
<module>i18n-common</module>
<module>i18n-paper</module>
Expand Down

0 comments on commit 6c39109

Please sign in to comment.