Skip to content

Commit ce1da64

Browse files
authored
Update EmoteOffhandExtension to use Geyser API 2.9.3 (#4)
* Update Gradle to 9.3.1 * Update copyright year in LICENSE to 2026 * Update api in extension.yml to 2.9.3 * Update Geyser API to 2.9.3-SNAPSHOT * Replace switchHands() with requestOffhandSwap() * Bump version to 1.0.1 in extension.yml * Bump version from 1.0.0 to 1.0.1
1 parent 4feb6d9 commit ce1da64

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2024 GeyserMC. http://geysermc.org
3+
Copyright (c) 2026 GeyserMC. http://geysermc.org
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repositories {
88
}
99

1010
dependencies {
11-
compileOnly("org.geysermc.geyser:api:2.9.0-SNAPSHOT")
11+
compileOnly("org.geysermc.geyser:api:2.9.3-SNAPSHOT")
1212
}
1313

1414
tasks {

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=1.0.0
2-
group=org.geysermc.extension.emoteoffhand
1+
version=1.0.1
2+
group=org.geysermc.extension.emoteoffhand
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Sun Nov 02 19:57:40 GMT 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

src/main/java/org/geysermc/extension/emoteoffhand/EmoteOffhand.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
import org.geysermc.geyser.api.extension.Extension;
77

88
public class EmoteOffhand implements Extension {
9-
109
@Subscribe
1110
public void onPostInitialize(GeyserPostInitializeEvent ignored) {
1211
this.logger().info("Loaded EmoteOffhand!");
1312
}
1413

1514
@Subscribe
1615
public void onEmote(ClientEmoteEvent event) {
17-
event.connection().entities().switchHands();
16+
event.connection().requestOffhandSwap();
1817
}
1918
}

src/main/resources/extension.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id: emoteoffhand
22
name: EmoteOffhand
33
main: org.geysermc.extension.emoteoffhand.EmoteOffhand
4-
api: 2.9.0
5-
version: 1.0.0
6-
authors: [Auri]
4+
api: 2.9.3
5+
version: 1.0.1
6+
authors: [Auri]

0 commit comments

Comments
 (0)