Skip to content

Commit

Permalink
Made some changes! (and base of project)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguVT committed Apr 12, 2024
1 parent a17f1bc commit dfbb1cf
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
39 changes: 39 additions & 0 deletions src/main/java/com/miguvt/migucord/MiguCordPlugin.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.miguvt.migucord;

import com.velocitypowered.api.plugin.Plugin;
import com.velocitypowered.api.plugin.annotation.DataDirectory;
import com.velocitypowered.api.proxy.ProxyServer;
import com.velocitypowered.api.event.Subscribe;
import com.velocitypowered.api.event.proxy.ProxyInitializeEvent;
import com.velocitypowered.api.event.proxy.ProxyShutdownEvent;
import org.slf4j.Logger;
import javax.inject.Inject;
import java.nio.file.Path;

@Plugin(id = "migucord", name = "MiguCord Velocity", version = "1.0.0", description = "A Velocity plugin for Minecraft server integration with Discord", authors = {"MiguVT"})
public class MiguCordPlugin {
private final ProxyServer server;
private final Logger logger;
private final Path dataDirectory;

@Inject
public MiguCordPlugin(ProxyServer server, Logger logger, @DataDirectory Path dataDirectory) {
this.server = server;
this.logger = logger;
this.dataDirectory = dataDirectory;
}

@Subscribe
public void onProxyInitialization(ProxyInitializeEvent event) {
// Cargar configuración
// Iniciar bot de Discord
// Registrar comandos y eventos
logger.info("MiguCord plugin has been initialized!");
}

@Subscribe
public void onProxyShutdown(ProxyShutdownEvent event) {
// Código para manejar la detención del plugin
logger.info("MiguCord plugin is shutting down.");
}
}
1 change: 0 additions & 1 deletion src/main/java/com/miguvt/migucord/MiguVersePlugin.java

This file was deleted.

0 comments on commit dfbb1cf

Please sign in to comment.