mirror of
https://github.com/SimplexDevelopment/SimplexSS.git
synced 2025-02-22 13:30:38 +00:00
Merge branch 'main' of https://github.com/SimplexDevelopment/SimplexSS
This commit is contained in:
commit
a4f1e01c87
@ -2,7 +2,7 @@
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
@ -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…
x
Reference in New Issue
Block a user