-
Notifications
You must be signed in to change notification settings - Fork 0
API Basics
github-actions[bot] edited this page Jan 3, 2026
·
5 revisions
BeaconPlus provides an API for developers to interact with beacons, players, and effects.
The main entry point for the API is the BeaconAPI class. You can access it using the static getAPI() method:
import thito.beaconplus.BeaconAPI;
BeaconAPI api = BeaconAPI.getAPI();Since there is currently no public repository, you should include the BeaconPlus.jar file as a local dependency in your project.
<dependency>
<groupId>thito</groupId>
<artifactId>BeaconPlus</artifactId>
<version>3.1.12</version> <!-- Use the version from plugin.yml -->
<scope>provided</scope>
<systemPath>${project.basedir}/libs/BeaconPlus.jar</systemPath>
</dependency>dependencies {
compileOnly files('libs/BeaconPlus.jar')
}To retrieve information about a beacon at a specific location:
Location loc = ...;
BeaconData data = api.getBeaconData(loc);
if (data != null) {
String name = data.getBeaconName();
double range = data.getRange();
// ...
}To get data associated with a player (e.g., their placed beacons):
Player player = ...;
PlayerData data = api.getPlayerData(player);
if (data != null) {
List<BeaconInfo> beacons = data.getBeaconInfoList();
// ...
}BeaconPlus uses its own internal executor for many operations. You can submit tasks to it:
api.submit(() -> {
// Perform asynchronous operation
});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