9
0
mirror of https://github.com/GeyserExtensionists/GeyserUtils.git synced 2025-12-19 15:09:24 +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

@@ -69,11 +69,5 @@
<version>1.20-R0.1-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,6 +1,5 @@
package me.zimzaza4.geyserutils.bungee;
import me.zimzaza4.geyserutils.common.channel.GeyserUtilsChannels;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.plugin.Plugin;
@@ -9,7 +8,7 @@ public final class GeyserUtils extends Plugin {
@Override
public void onEnable() {
ProxyServer.getInstance()
.registerChannel(GeyserUtilsChannels.MAIN);
.registerChannel("geyserutils:main");
// Plugin startup logic
}