config manager: run shutdown hook after plugins
This commit is contained in:
@@ -910,7 +910,10 @@ public class ConfigManager
|
||||
return object == null ? null : object.toString();
|
||||
}
|
||||
|
||||
@Subscribe(priority = 100)
|
||||
@Subscribe(
|
||||
// run after plugins, in the event they save config on shutdown
|
||||
priority = -100
|
||||
)
|
||||
private void onClientShutdown(ClientShutdown e)
|
||||
{
|
||||
Future<Void> f = sendConfig();
|
||||
|
||||
@@ -38,5 +38,9 @@ import java.lang.annotation.Target;
|
||||
@Documented
|
||||
public @interface Subscribe
|
||||
{
|
||||
/**
|
||||
* Priority relative to other event subscribers. Higher priorities run first.
|
||||
* @return
|
||||
*/
|
||||
float priority() default 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user