Getting Started
Here we explain how to use the Wale API correctly.
How do I import the API?
maven {
name "waleRepositoryReleases"
url "https://repo.walecloud.com/releases"
}<repositories>
<repository>
<id>waleRepositoryReleases</id>
<name>waleRepositoryReleases</name>
<url>https://repo.walecloud.com/releases</url>
</repository>
</repositories>dependencies {
compileOnly "at.stefan:wale-api:VERSION"
}<dependencies>
<dependency>
<groupId>at.stefan</groupId>
<artifactId>wale-api</artifactId>
<version>VERSION</version>
<scope>provided</scope>
</dependency>
</dependencies>How do I now use the API in my project?
// An example of how to initialize the API
public class Test extends JavaPlugin {
@Getter
private WaleAPI waleAPI;
@Override
public void onEnable() {
waleAPI = new WaleAPI();
}
}Last updated