mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-04 10:41:50 +02:00
Added booleans to PluginInfo for controlling method calls.
This commit is contained in:
parent
600e90873e
commit
0be153d03e
|
@ -67,4 +67,22 @@ public @interface PluginInfo {
|
||||||
* @return Preferred color. If none are specified defaults are used.
|
* @return Preferred color. If none are specified defaults are used.
|
||||||
*/
|
*/
|
||||||
Color color() default Color.NONE;
|
Color color() default Color.NONE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should Plan call the player data provider methods when the player leaves.
|
||||||
|
* <p>
|
||||||
|
* By default Plan calls the player methods only short time after joining.
|
||||||
|
*
|
||||||
|
* @return {@code false} by default.
|
||||||
|
*/
|
||||||
|
boolean updatePlayerDataOnLeave() default false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should Plan call the server data provider methods periodically.
|
||||||
|
* <p>
|
||||||
|
* By default Plan calls the server methods only short time after the extension is registered.
|
||||||
|
*
|
||||||
|
* @return {@code false} by default.
|
||||||
|
*/
|
||||||
|
boolean updateServerDataPeriodically() default false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user