Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion plotsquared/api/flag-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down