diff --git a/plotsquared/api/flag-api.md b/plotsquared/api/flag-api.md index dd9dc4f..4c96499 100644 --- a/plotsquared/api/flag-api.md +++ b/plotsquared/api/flag-api.md @@ -104,7 +104,9 @@ All flags must be registered in the `GlobalFlagContainer`, or else they will not Each flag will be applied to every plot, so it is necessary to pick appropriate default flag values. To register a flag, use: -`com.plotsquared.plot.flags.GlobalFlagContainer().getInstance().addFlag(flagInstance)` +`com.plotsquared.plot.flags.GlobalFlagContainer.getInstance().addFlag(flagInstance)` + +`GlobalFlagContainer` instance will be initialized after the plugin is enabled, calling `GlobalFlagContainer.getInstance()` before enable will always return null. ## Adding a flag to a plot