sofyCore Developer documentation
Use sofyCore's public Java API to read ranks, issue sanctions, freeze, vanish, open menus, move VIP points and listen to events from your plugins.
sofyCore exposes a platform-independent API in the net.sofycore.api package (module sofycore-api). Your plugin compiles against it with provided scope and obtains the implementation from Bukkit's ServicesManager at runtime.
Add the dependency
Maven and Gradle setup for sofycore-api.
Get SofyCoreApi and its services safely during startup.
Every interface with its methods.
EventsRank, freeze, vanish, moderation and session events.
Design principles
- Typed services, no generic executor. Business actions are exposed through typed services. There is no permission-free "run anything" API.
- Asynchronous I/O. Methods that touch the database or Redis return
CompletableFutureand run on bounded workers. - Same rules as commands. Services that act on players apply the same permissions and hierarchy as the in-game commands.
- No platform types in the API.
sofycore-apidoes not import Bukkit, NMS or database driver classes.