@@ -87,9 +87,8 @@ public interface Server extends ForwardingAudience, Engine, LocaleSource {
87
87
/**
88
88
* Gets if multiple {@link ServerWorld worlds} will be loaded by the server.
89
89
*
90
- * <p>If false, no calls to loading worlds via the {@link WorldManager world manager} or otherwise will
91
- * load a world</p>
92
- *
90
+ * @implNote If false, no calls to loading worlds via the {@link WorldManager world manager} or otherwise will
91
+ * load a world
93
92
* @return True if enabled, false if not
94
93
*/
95
94
boolean isMultiWorldEnabled ();
@@ -140,8 +139,7 @@ public interface Server extends ForwardingAudience, Engine, LocaleSource {
140
139
/**
141
140
* Gets the player idle timeout, in minutes.
142
141
*
143
- * <p>A value of {@code 0} means the timeout is disabled</p>
144
- *
142
+ * @implNote A value of {@code 0} means the timeout is disabled
145
143
* @return The player idle timeout
146
144
*/
147
145
int playerIdleTimeout ();
@@ -169,7 +167,7 @@ public interface Server extends ForwardingAudience, Engine, LocaleSource {
169
167
170
168
/**
171
169
* Gets if {@link ServerPlayer players} will have their {@link GameMode game mode} set to the default.
172
- *
170
+ * <p>
173
171
* {@link Server#gameMode()}
174
172
*
175
173
* @return True if enforced, false if not
@@ -244,12 +242,11 @@ public interface Server extends ForwardingAudience, Engine, LocaleSource {
244
242
245
243
/**
246
244
* Gets a {@link ServerPlayer} by their name.
245
+ * <p>
246
+ * This only works for online players.
247
247
*
248
- * <p>This only works for online players.</p>
249
- *
250
- * <p><b>Note: Do not use names for persistent storage, the
251
- * Notch of today may not be the Notch of yesterday.</b></p>
252
- *
248
+ * @implNote Do not use names for persistent storage, the
249
+ * Notch of today may not be the Notch of yesterday.
253
250
* @param name The name to get the player from
254
251
* @return The {@link ServerPlayer} or empty if not found
255
252
*/
@@ -258,14 +255,13 @@ public interface Server extends ForwardingAudience, Engine, LocaleSource {
258
255
/**
259
256
* Gets the 'server' scoreboard. In Vanilla, this is the scoreboard of
260
257
* dimension 0 (the overworld).
258
+ * <p>
259
+ * The server scoreboard is used with the Vanilla /scoreboard command,
260
+ * automatic score updating through criteria, and other things.
261
261
*
262
- * <p>The server scoreboard is used with the Vanilla /scoreboard command,
263
- * automatic score updating through criteria, and other things.</p>
264
- *
265
- * <p>The server scoreboard may not be available if dimension 0
262
+ * @implNote The server scoreboard may not be available if dimension 0
266
263
* is not yet loaded. In Vanilla, this will only occur when the
267
- * server is first starting, as dimension 0 is normally always loaded.</p>
268
- *
264
+ * server is first starting, as dimension 0 is normally always loaded.
269
265
* @return the server scoreboard, if available.
270
266
*/
271
267
Optional <? extends Scoreboard > serverScoreboard ();
@@ -282,9 +278,8 @@ public interface Server extends ForwardingAudience, Engine, LocaleSource {
282
278
* Gets the time, in ticks, since this server began running for the current
283
279
* session.
284
280
*
285
- * <p>This value is not persisted across server restarts, it is set to zero
286
- * each time the server starts.</p>
287
- *
281
+ * @implNote This value is not persisted across server restarts, it is set to zero
282
+ * each time the server starts.
288
283
* @return The number of ticks since this server started running
289
284
*/
290
285
Ticks runningTimeTicks ();
@@ -322,8 +317,8 @@ public interface Server extends ForwardingAudience, Engine, LocaleSource {
322
317
* Shuts down the server, and kicks all players with the default kick
323
318
* message.
324
319
*
325
- * <p> For the Sponge implementation on the client, this will trigger the
326
- * Integrated Server to shutdown a tick later.</p>
320
+ * @implNote For the Sponge implementation on the client, this will trigger the
321
+ * Integrated Server to shutdown a tick later.
327
322
*/
328
323
void shutdown ();
329
324
@@ -358,8 +353,8 @@ public interface Server extends ForwardingAudience, Engine, LocaleSource {
358
353
359
354
/**
360
355
* Gets the target ticks per second for this server.
361
- *
362
- * <p> This is dependent on the implementation.</p>
356
+ * <p>
357
+ * This is dependent on the implementation.
363
358
*
364
359
* @return The target tick per second rate.
365
360
*/
@@ -368,8 +363,7 @@ public interface Server extends ForwardingAudience, Engine, LocaleSource {
368
363
/**
369
364
* Sets the player idle timeout, in minutes.
370
365
*
371
- * <p>A value of {@code 0} disables the player idle timeout.</p>
372
- *
366
+ * @implNote A value of {@code 0} disables the player idle timeout.
373
367
* @param timeout The player idle timeout
374
368
*/
375
369
void setPlayerIdleTimeout (int timeout );
@@ -379,29 +373,28 @@ public interface Server extends ForwardingAudience, Engine, LocaleSource {
379
373
* services that plugins may provide. Services provided here are
380
374
* scoped to the lifetime of this Server.
381
375
*
382
- * <p> The provider will not be available during plugin construction and will
376
+ * @implNote The provider will not be available during plugin construction and will
383
377
* throw an {@link IllegalStateException} if there is an attempt to access
384
- * this before the provider is ready.</p>
385
- *
378
+ * this before the provider is ready.
386
379
* @return The service manager
387
380
*/
388
381
ServiceProvider .ServerScoped serviceProvider ();
389
382
390
383
/**
391
384
* Gets the {@link CommandManager} for executing and inspecting commands.
392
- *
393
- * <p> Commands must be registered by listening to the
394
- * {@link RegisterCommandEvent} instead.</p>
385
+ * <p>
386
+ * Commands must be registered by listening to the
387
+ * {@link RegisterCommandEvent} instead.
395
388
*
396
389
* @return The {@link CommandManager} instance.
397
390
*/
398
391
CommandManager commandManager ();
399
392
400
393
/**
401
394
* Gets the map storage for this server
402
- *
403
- * <p> This allows for control over the server's maps,
404
- * including obtaining and creating them</p>
395
+ * <p>
396
+ * This allows for control over the server's maps,
397
+ * including obtaining and creating them
405
398
*
406
399
* @return MapStorage
407
400
*/
0 commit comments