Skip to content

Using BedWars API

Warning

Note that API is going to be changed in future versions (0.3.0+)

Maven

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<repositories>
  <repository>
    <id>screaming-repo</id>
    <url>https://repo.screamingsandals.org/public/</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>org.screamingsandals.bedwars</groupId>
    <artifactId>BedWars-API</artifactId>
    <version>0.2.35</version>
    <scope>provided</scope>
  </dependency>
</dependencies>

Gradle

1
2
3
4
5
6
7
repositories {
    maven { url 'https://repo.screamingsandals.org/public/' }
}

dependencies {
    compileOnly 'org.screamingsandals.bedwars:BedWars-API:0.2.35'
}

Hooking into the API

1
2
3
4
5
import org.screamingsandals.bedwars.api.BedwarsAPI;

...
BedwarsAPI api = BedwarsAPI.getInstance();
...

Javadoc: https://jd.screamingsandals.org/sbw-0-2-x/BedWars-API/