-
Notifications
You must be signed in to change notification settings - Fork 0
Team Providers
github-actions[bot] edited this page Jan 3, 2026
·
4 revisions
BeaconPlus allows you to integrate with custom team or party plugins by implementing a TeamProvider. This is useful for allowing entire teams to be added to a beacon's whitelist or blacklist.
First, implement the Team interface to represent a group from your plugin.
import thito.beaconplus.team.Team;
import org.bukkit.entity.Player;
public class MyTeam implements Team {
private final String id;
private final String name;
public MyTeam(String id, String name) {
this.id = id;
this.name = name;
}
@Override
public String getId() { return id; }
@Override
public String getName() { return name; }
@Override
public boolean isMember(Player player) {
// Check if the player is in this team
return false;
}
}The TeamProvider handles lookup and player-to-team mapping.
import thito.beaconplus.team.TeamProvider;
import thito.beaconplus.team.Team;
import org.bukkit.entity.Player;
public class MyTeamProvider implements TeamProvider {
@Override
public String getId() { return "MY_PLUGIN"; }
@Override
public String getDisplayName() { return "My Plugin Teams"; }
@Override
public boolean isAvailable() {
// Check if your plugin is enabled
return true;
}
@Override
public Team getTeamByName(String name) {
// Find team by name/ID
return null;
}
@Override
public Team getPlayerTeam(Player player) {
// Get the team the player is currently in
return null;
}
@Override
public boolean requiresSync() {
// Return true if your plugin's API is NOT thread-safe
return false;
}
}Register your provider with the BeaconAPI.
import thito.beaconplus.BeaconAPI;
public void onEnable() {
BeaconAPI.getAPI().registerTeamProvider(new MyTeamProvider());
}Beacon.yml
All Beacon Effects
- 1. Potion Effect
- 2. Immortality Field
- 3. Potion Duration Boost
- 4. Flight
- 5. Magnet
- 6. Spawner Boost
- 7. Crops Boost
- 8. Keep Chunk Loaded
- 9. Apply Mending
- 10. Command Executor
- 11. Glow
- 12. Attribute Modifier
- 13. Cooldown Reduction
- 14. EXP Boost
- 15. EXP Gain
- 16. Extra Power
- 17. Extra Range
- 18. Fire Control
- 19. Furnace Boost
- 20. Permission
- 21. Prevent Mob Spawning
- 22. Saturation
- 23. Stupid AI