Skip to content

Commit 7069a1c

Browse files
committed
Fix javadoc comments
1 parent e6703d5 commit 7069a1c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/de/bluecolored/bluemap/api/BlueMapAPI.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,19 @@ public static synchronized Optional<BlueMapAPI> getInstance() {
153153

154154
/**
155155
* Registers a {@link Consumer} that will be called when BlueMap has been loaded and started and the API is ready to use.<br>
156-
* If {@link BlueMapAPI} is already enabled when this listener is registered this method will be called immediately <i>(on the same thread)</i>!
157-
* <p><i>(Note: This method will likely be called asynchronously, <b>not</b> on the server-thread!</i></p>
156+
* If {@link BlueMapAPI} is already enabled when this listener is registered the consumer will be called immediately <i>(on the same thread)</i>!
157+
* <p><i>(Note: The consumer will likely be called asynchronously, <b>not</b> on the server-thread!)</i></p>
158158
* @param consumer the {@link Consumer}
159159
*/
160160
public static synchronized void onEnable(Consumer<BlueMapAPI> consumer) {
161161
onEnableConsumers.add(consumer);
162162
}
163163

164164
/**
165-
* Registers a {@link Consumer} that will be called <b>before</b> BlueMap is being unloaded and stopped, after this method returns the API is no longer usable!<br>
166-
* Unlike {@link BlueMapAPIListener#onEnable(BlueMapAPI)}, if {@link BlueMapAPI} is not enabled when this listener is registered this method will <b>not</b> be called immediately.
167-
* <p><i>(Note: This method will likely be called asynchronously, <b>not</b> on the server-thread!</i></p>
168-
* @param blueMapApi the {@link BlueMapAPI}
165+
* Registers a {@link Consumer} that will be called <b>before</b> BlueMap is being unloaded and stopped, after the consumer returns the API is no longer usable!<br>
166+
* Unlike with {@link BlueMapAPI#onEnable(Consumer)}, if {@link BlueMapAPI} is not enabled when this listener is registered the consumer will <b>not</b> be called.
167+
* <p><i>(Note: The consumer will likely be called asynchronously, <b>not</b> on the server-thread!)</i></p>
168+
* @param consumer the {@link Consumer}
169169
*/
170170
public static synchronized void onDisable(Consumer<BlueMapAPI> consumer) {
171171
onDisableConsumers.add(consumer);

0 commit comments

Comments
 (0)