-
Notifications
You must be signed in to change notification settings - Fork 3
Developer API
Ján Kluka edited this page Jan 17, 2021
·
2 revisions
package me.drawethree.api;
import me.drawethree.buildbattle.objects.bbobjects.BBPlayerStats;
import me.drawethree.buildbattle.objects.bbobjects.BBTeam;
import me.drawethree.buildbattle.objects.bbobjects.arena.BBArena;
import org.bukkit.entity.Player;
import java.util.Collection;
public interface BuildBattleProAPI {
/**
* Method to get all arenas
*
* @return List of all arenas
*/
Collection<BBArena> getArenas();
/**
* Method to get player's arena
*
* @param p Player
* @return Arena in which player is
*/
BBArena getPlayerArena(Player p);
/**
* Method to get player's buildbattle stats
*
* @param p Player
* @return BBPlayerStats object
* @deprecated If player is offline, this method returns null. Will be replaced soon.
*/
@Deprecated
BBPlayerStats getPlayerBuildBattleStats(Player p);
/**
* Method to get player's team
*
* @param p Player
* @return BBTeam object
*/
BBTeam getPlayerTeam(Player p);
}
© 2020 PRO BuildBattle | Created by Drawethree