-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made some changes! (and base of project)
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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."); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.