πŸ–₯️For Developers

Lobby & Game

Obtain LeaderBoard RBucket

String leaderboardName = "bedwars_wins_daily";
RBucket<LeaderBoard> redisBoard = Basement.rclient().getBucket(leaderboardName);

if (redisBoard.isExists()) {
    LeaderBoard board = redisBoard.get();|
    ...   
}

Obtain Statistic Class

UUID uniqueId = null;
Statistics stats = Basement.rclient().getLiveObjectService().get(Statistics.class, uniqueId.toString());
if (stats == null) {
    System.out.println("Statistics not found");
    return;
}

int wins = statistics.get(StatsScope.SOLO, StatsType.WIN);
...

Obtain UserData Class

Obtain SharedBedwarsMatch Class

Game Only

Obtain MatchPlayer Class

Cosmetics API

Create custom cosmetics with easy API

Implements one of those Abstract Class

Add your cosmetic class to the avaible one

PlayerCosmetics class is an utility class to manage cosmetics for players:

Cosmetic Example

Last updated

Was this helpful?