Skip to content

Commit

Permalink
🔖 4.0.3 - bug fix only
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Dec 27, 2022
1 parent d0a5a0c commit cde2728
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "net.azisaba.azipluginmessaging"
version = "4.0.2"
version = "4.0.3"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.google.inject.Inject;
import com.velocitypowered.api.event.Subscribe;
import com.velocitypowered.api.event.connection.PluginMessageEvent;
import com.velocitypowered.api.event.proxy.ProxyInitializeEvent;
import com.velocitypowered.api.event.proxy.ProxyShutdownEvent;
import com.velocitypowered.api.plugin.Dependency;
import com.velocitypowered.api.plugin.Plugin;
Expand All @@ -24,14 +25,21 @@
@Plugin(id = "azi-plugin-messaging", name = "AziPluginMessaging", version = "4.0.0",
dependencies = @Dependency(id = "luckperms"))
public class VelocityPlugin {
private final ProxyServer server;

@Inject
public VelocityPlugin(@NotNull ProxyServer server, @NotNull Logger logger) {
this.server = server;
server.getChannelRegistrar().register(new LegacyChannelIdentifier(Protocol.LEGACY_CHANNEL_ID));
server.getChannelRegistrar().register(MinecraftChannelIdentifier.from(Protocol.CHANNEL_ID));
AziPluginMessagingVelocity api = new AziPluginMessagingVelocity(server, logger);
AziPluginMessagingProviderProvider.register(api);
AziPluginMessagingConfig.reload();
DBConnector.init();
}

@Subscribe
public void onProxyInitialization(ProxyInitializeEvent e) {
server.getScheduler()
.buildTask(this, () -> {
// check rank expiration
Expand Down

0 comments on commit cde2728

Please sign in to comment.