docs: deprecate `register()`

This commit is contained in:
Gabriel Dumitru 2023-04-05 18:32:58 +03:00
parent 2d86870df5
commit 6465aea539
No known key found for this signature in database
GPG Key ID: 4F14082F3710B7CE
1 changed files with 2 additions and 0 deletions

View File

@ -320,7 +320,9 @@ public final class LocalExpansionManager implements Listener {
* that call this method directly. It is the equivalent of {@code register(expansion, false)}
* @param expansion the expansion to register
* @return if the expansion was registered
* @deprecated use {@link #register(PlaceholderExpansion, boolean)} directly
*/
@Deprecated
@ApiStatus.Internal
public boolean register(@NotNull final PlaceholderExpansion expansion) {
return register(expansion, false);