mirror of
https://github.com/SimplexDevelopment/SimplexSS.git
synced 2024-11-14 22:03:31 +00:00
Merge branch 'main' of https://github.com/SimplexDevelopment/SimplexSS
This commit is contained in:
commit
a4f1e01c87
@ -2,7 +2,7 @@
|
||||
|
||||
![](https://img.shields.io/github/license/SimplexDevelopment/SimplexSS)
|
||||
![](https://img.shields.io/github/languages/top/SimplexDevelopment/SimplexSS)
|
||||
![](https://img.shields.io/github/workflow/status/SimplexDevelopment/SimplexSS/CodeQL/main)
|
||||
![](https://img.shields.io/github/actions/workflow/status/SimplexDevelopment/SimplexSS/codeql.yml?branch=main)
|
||||
![](https://img.shields.io/github/v/release/SimplexDevelopment/SimplexSS?include_prereleases)
|
||||
![](https://jitpack.io/v/SimplexDevelopment/SimplexSS.svg)
|
||||
![](https://img.shields.io/github/issues/SimplexDevelopment/SimplexSS)
|
||||
@ -89,6 +89,7 @@
|
||||
Then, you should use the Service Manager to create some new service pools. You can use `ServicePool#emptyBukkitServicePool(String, JavaPlugin)` for a service pool which will operate on the main server thread, or you can use `ServicePool#emptyServicePool(String, boolean)` for a completely separate, non-blocking scheduler which can be either singular or multithreaded. You should also use the service manager stream to register your services, and assign a Flux<Disposable> object so we can cancel the services later on in `JavaPlugin#onDisable()`.
|
||||
|
||||
```Java
|
||||
private SchedulingSystem<YourPlugin> scheduler;
|
||||
private Flux<Disposable> disposables;
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user