24 lines
719 B
Java
24 lines
719 B
Java
package io.github.kosyakmakc.tgbridgeVerifications;
|
|
|
|
import org.bukkit.plugin.java.JavaPlugin;
|
|
import dev.vanutp.tgbridge.common.*;
|
|
|
|
public final class TgbridgeVerifications extends JavaPlugin implements IMinecraftPlatform {
|
|
private DataContext dataContext;
|
|
|
|
@Override
|
|
public void onEnable() {
|
|
// Plugin startup logic
|
|
var tgbridge = TelegramBridge.Companion.getINSTANCE();
|
|
dataContext = new DataContext(this, new TelegramPlatform(tgbridge));
|
|
|
|
tgbridge.addIntegration(new VerificationIntegration(tgbridge, dataContext));
|
|
}
|
|
|
|
@Override
|
|
public void onDisable() {
|
|
// Plugin shutdown logic
|
|
var tgbridge = TelegramBridge.Companion.getINSTANCE();
|
|
}
|
|
}
|