File tree 4 files changed +19
-5
lines changed
src/main/java/me/orphey/typinginchat
4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<groupId >me.orphey</groupId >
8
8
<artifactId >TypingInChat-spigot</artifactId >
9
- <version >1.1 </version >
9
+ <version >1.2 </version >
10
10
<packaging >jar</packaging >
11
11
12
12
<name >TypingInChat-spigot</name >
67
67
<id >sonatype</id >
68
68
<url >https://oss.sonatype.org/content/groups/public/</url >
69
69
</repository >
70
+ <repository >
71
+ <id >evoke-snapshots</id >
72
+ <name >EvokeGames Maven</name >
73
+ <url >https://maven.evokegames.gg/snapshots</url >
74
+ </repository >
70
75
</repositories >
71
76
72
77
<dependencies >
91
96
<dependency >
92
97
<groupId >com.github.max1mde</groupId >
93
98
<artifactId >HologramLib</artifactId >
94
- <version >1.6.0 </version >
99
+ <version >1.6.4 </version >
95
100
<scope >provided</scope >
96
101
</dependency >
97
102
</dependencies >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ private ConfigLoader() {
22
22
}
23
23
private static final File file = new File (TypingInChat .getInstance ().getDataFolder (), "config.yml" );
24
24
private static final String bukkitVersion = Bukkit .getBukkitVersion ().split ("-" )[0 ];
25
- private static final int bukkitComparison = compareVersions (bukkitVersion , "1.20.5 " );
25
+ private static final int bukkitComparison = compareVersions (bukkitVersion , "1.20.4 " );
26
26
private static final ConfigLoader instance = new ConfigLoader ();
27
27
private static final YamlConfiguration config = new YamlConfiguration ();
28
28
private static final Map <String , Boolean > booleanParameters = new HashMap <>(Map .ofEntries (
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ private WrapperPlayClientPluginMessage verifyPacket(PacketReceiveEvent event) {
30
30
if (event .getPacketType () == PacketType .Play .Client .PLUGIN_MESSAGE ) {
31
31
WrapperPlayClientPluginMessage packet = new WrapperPlayClientPluginMessage (event );
32
32
String channel = packet .getChannelName (); // Get the channel name
33
+ //System.out.println("Received packet " + channel);
33
34
if (channel .equals ("typinginchatmod:typing_status" )) {
34
35
return packet ;
35
36
} else {
@@ -42,11 +43,19 @@ private WrapperPlayClientPluginMessage verifyPacket(PacketReceiveEvent event) {
42
43
43
44
private byte readPacket (WrapperPlayClientPluginMessage packet ) {
44
45
byte [] data = packet .getData ();
45
- if (data .length == 1 ) {
46
+ //System.out.println("Data Length: " + data.length);
47
+ if (data .length == 2 ) { //Forge
48
+ //System.out.println("Forge " + data[1]);
49
+ return data [1 ];
50
+ } else if (data .length == 1 ) { //Fabric
51
+ //System.out.println("Fabric " + data[0]);
46
52
return data [0 ];
47
53
} else {
54
+ //System.out.println("Empty");
48
55
return 0 ;
49
56
}
57
+
58
+
50
59
}
51
60
52
61
private void manageHolo (Player player , byte b ) {
Original file line number Diff line number Diff line change 1
1
artifactId =TypingInChat-spigot
2
2
groupId =me.orphey
3
- version =1.1
3
+ version =1.2
You can’t perform that action at this time.
0 commit comments