9
0
mirror of https://github.com/GeyserExtensionists/GeyserUtils.git synced 2025-12-24 01:19:14 +00:00

register channel

This commit is contained in:
zimzaza4
2024-04-13 17:09:40 +08:00
parent 7dbcba305e
commit 76cb76fc03
5 changed files with 20 additions and 17 deletions

View File

@@ -93,11 +93,5 @@
<version>3.2.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.zimzaza4</groupId>
<artifactId>geyserutils-common</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

View File

@@ -1,13 +1,12 @@
package me.zimzaza4.geyserutils.velocity;
import com.google.inject.Inject;
import com.velocitypowered.api.event.proxy.ProxyInitializeEvent;
import com.velocitypowered.api.event.Subscribe;
import com.velocitypowered.api.event.proxy.ProxyInitializeEvent;
import com.velocitypowered.api.plugin.Plugin;
import com.velocitypowered.api.plugin.annotation.DataDirectory;
import com.velocitypowered.api.proxy.ProxyServer;
import com.velocitypowered.api.proxy.messages.MinecraftChannelIdentifier;
import me.zimzaza4.geyserutils.common.channel.GeyserUtilsChannels;
import org.slf4j.Logger;
import java.nio.file.Path;
@@ -29,6 +28,6 @@ public class GeyserUtils {
@Subscribe
public void onProxyInitialization(ProxyInitializeEvent event) {
server.getChannelRegistrar().register(MinecraftChannelIdentifier.from(GeyserUtilsChannels.MAIN));
server.getChannelRegistrar().register(MinecraftChannelIdentifier.from("geyserutils:main"));
}
}