Skip to content

Using the API

Setting everything up

Before starting to use the API, you will have to add the myth-MC releases repository and the dependency to your project:

<repositories>
    <repository>
        <id>myth-mc-releases</id>
        <url>https://repo.mythmc.ovh/releases/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>ovh.mythmc</groupId>
        <artifactId>banco-api</artifactId>
        <version>VERSION</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

You can now get the Banco instance by using the Banco class:

Banco banco = Banco.get();

This instance provides access to every function in the plugin.