Skip to content

Using BedWars API

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.23</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.23'
}

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/


Last update: 2022-05-07
Back to top