Skip to content

Commit be629e7

Browse files
committed
Apply spotless
1 parent 472603a commit be629e7

File tree

2 files changed

+34
-35
lines changed

2 files changed

+34
-35
lines changed

src/main/java/net/coreprotect/CoreProtectAPI.java

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static class ParseResult extends net.coreprotect.api.result.ParseResult {
4646

4747
/**
4848
* Creates a new ParseResult from string array data.
49-
*
49+
*
5050
* @param data
5151
* The string array data to parse
5252
*/
@@ -57,7 +57,7 @@ public ParseResult(String[] data) {
5757

5858
/**
5959
* Converts a list of objects to a map for internal processing
60-
*
60+
*
6161
* @param list
6262
* List of objects to convert
6363
* @return Map with objects as keys and Boolean false as values
@@ -82,7 +82,7 @@ else if (value instanceof Integer) {
8282

8383
/**
8484
* Returns the current API version.
85-
*
85+
*
8686
* @return The API version as an integer
8787
*/
8888
public int APIVersion() {
@@ -91,7 +91,7 @@ public int APIVersion() {
9191

9292
/**
9393
* Performs a block lookup at the specified block.
94-
*
94+
*
9595
* @param block
9696
* The block to look up
9797
* @param time
@@ -107,7 +107,7 @@ public List<String[]> blockLookup(Block block, int time) {
107107

108108
/**
109109
* Performs a lookup on the queue data for the specified block.
110-
*
110+
*
111111
* @param block
112112
* The block to look up
113113
* @return List of results
@@ -118,7 +118,7 @@ public List<String[]> queueLookup(Block block) {
118118

119119
/**
120120
* Performs a lookup on session data for the specified user.
121-
*
121+
*
122122
* @param user
123123
* The user to look up
124124
* @param time
@@ -131,7 +131,7 @@ public List<String[]> sessionLookup(String user, int time) {
131131

132132
/**
133133
* Determines if a user has placed a block at the specified location.
134-
*
134+
*
135135
* @param user
136136
* The username to check
137137
* @param block
@@ -163,7 +163,7 @@ public boolean hasPlaced(String user, Block block, int time, int offset) {
163163

164164
/**
165165
* Determines if a user has removed a block at the specified location.
166-
*
166+
*
167167
* @param user
168168
* The username to check
169169
* @param block
@@ -195,7 +195,7 @@ public boolean hasRemoved(String user, Block block, int time, int offset) {
195195

196196
/**
197197
* Gets the current time in milliseconds. Protected to allow mocking in tests.
198-
*
198+
*
199199
* @return Current time in milliseconds
200200
*/
201201
protected long getCurrentTimeMillis() {
@@ -204,7 +204,7 @@ protected long getCurrentTimeMillis() {
204204

205205
/**
206206
* Checks if the CoreProtect API is enabled.
207-
*
207+
*
208208
* @return True if the API is enabled
209209
*/
210210
public boolean isEnabled() {
@@ -224,7 +224,7 @@ public boolean logChat(Player player, String message) {
224224

225225
/**
226226
* Logs a chat message for a player.
227-
*
227+
*
228228
* @param player The player who sent the message
229229
* @param message The chat message
230230
* @param cancelled Whether the chat message was cancelled.
@@ -257,7 +257,7 @@ public boolean logCommand(Player player, String command) {
257257

258258
/**
259259
* Logs a command executed by a player.
260-
*
260+
*
261261
* @param player The player who executed the command
262262
* @param command The command
263263
* @return True if the command was logged
@@ -278,7 +278,7 @@ public boolean logCommand(Player player, String command, boolean cancelled) {
278278

279279
/**
280280
* Logs an interaction by a user at a location.
281-
*
281+
*
282282
* @param user
283283
* The username
284284
* @param location
@@ -296,7 +296,7 @@ public boolean logInteraction(String user, Location location) {
296296

297297
/**
298298
* Logs a container transaction by a user at a location.
299-
*
299+
*
300300
* @param user
301301
* The username
302302
* @param location
@@ -313,7 +313,7 @@ public boolean logContainerTransaction(String user, Location location) {
313313

314314
/**
315315
* Logs a block placement by a user.
316-
*
316+
*
317317
* @param user
318318
* The username
319319
* @param blockState
@@ -331,7 +331,7 @@ public boolean logPlacement(String user, BlockState blockState) {
331331

332332
/**
333333
* Logs a block placement by a user with a specific material and block data.
334-
*
334+
*
335335
* @param user
336336
* The username
337337
* @param location
@@ -361,7 +361,7 @@ public boolean logPlacement(String user, Location location, Material type, Block
361361

362362
/**
363363
* Logs a block placement by a user with a specific material and data value.
364-
*
364+
*
365365
* @param user
366366
* The username
367367
* @param location
@@ -385,7 +385,7 @@ public boolean logPlacement(String user, Location location, Material type, byte
385385

386386
/**
387387
* Logs a block removal by a user.
388-
*
388+
*
389389
* @param user
390390
* The username
391391
* @param blockState
@@ -403,7 +403,7 @@ public boolean logRemoval(String user, BlockState blockState) {
403403

404404
/**
405405
* Logs a block removal by a user with a specific material and block data.
406-
*
406+
*
407407
* @param user
408408
* The username
409409
* @param location
@@ -432,7 +432,7 @@ public boolean logRemoval(String user, Location location, Material type, BlockDa
432432

433433
/**
434434
* Logs a block removal by a user with a specific material and data value.
435-
*
435+
*
436436
* @param user
437437
* The username
438438
* @param location
@@ -456,7 +456,7 @@ public boolean logRemoval(String user, Location location, Material type, byte da
456456

457457
/**
458458
* Parses lookup results into a ParseResult object.
459-
*
459+
*
460460
* @param results
461461
* The results to parse
462462
* @return A ParseResult object containing the parsed data
@@ -467,7 +467,7 @@ public ParseResult parseResult(String[] results) {
467467

468468
/**
469469
* Performs a lookup operation with various filters.
470-
*
470+
*
471471
* @param time
472472
* Time constraint in seconds
473473
* @param restrictUsers
@@ -496,7 +496,7 @@ public List<String[]> performLookup(int time, List<String> restrictUsers, List<S
496496

497497
/**
498498
* Performs a lookup operation with basic filters.
499-
*
499+
*
500500
* @param user
501501
* The user to include in the lookup
502502
* @param time
@@ -523,7 +523,7 @@ public List<String[]> performLookup(String user, int time, int radius, Location
523523

524524
/**
525525
* Performs a partial lookup operation with various filters and pagination support.
526-
*
526+
*
527527
* @param time
528528
* Time constraint in seconds
529529
* @param restrictUsers
@@ -556,7 +556,7 @@ public List<String[]> performPartialLookup(int time, List<String> restrictUsers,
556556

557557
/**
558558
* Performs a partial lookup operation with basic filters and pagination support.
559-
*
559+
*
560560
* @param user
561561
* The user to include in the lookup
562562
* @param time
@@ -587,7 +587,7 @@ public List<String[]> performPartialLookup(String user, int time, int radius, Lo
587587

588588
/**
589589
* Performs a database purge operation.
590-
*
590+
*
591591
* @param time
592592
* Time in seconds for the purge operation
593593
*/
@@ -598,7 +598,7 @@ public void performPurge(int time) {
598598

599599
/**
600600
* Performs a restore operation with various filters.
601-
*
601+
*
602602
* @param time
603603
* Time constraint in seconds
604604
* @param restrictUsers
@@ -627,7 +627,7 @@ public List<String[]> performRestore(int time, List<String> restrictUsers, List<
627627

628628
/**
629629
* Performs a restore operation with basic filters.
630-
*
630+
*
631631
* @param user
632632
* The user to include in the restore
633633
* @param time
@@ -654,7 +654,7 @@ public List<String[]> performRestore(String user, int time, int radius, Location
654654

655655
/**
656656
* Performs a rollback operation with various filters.
657-
*
657+
*
658658
* @param time
659659
* Time constraint in seconds
660660
* @param restrictUsers
@@ -683,7 +683,7 @@ public List<String[]> performRollback(int time, List<String> restrictUsers, List
683683

684684
/**
685685
* Performs a rollback operation with basic filters.
686-
*
686+
*
687687
* @param user
688688
* The user to include in the rollback
689689
* @param time
@@ -710,7 +710,7 @@ public List<String[]> performRollback(String user, int time, int radius, Locatio
710710

711711
/**
712712
* Processes a data request with various filters.
713-
*
713+
*
714714
* @param time
715715
* Time constraint in seconds
716716
* @param radius
@@ -857,7 +857,7 @@ else if (argBlock instanceof EntityType && !addedEntity) {
857857

858858
/**
859859
* Processes a data request with basic filters.
860-
*
860+
*
861861
* @param user
862862
* The user to include in the operation
863863
* @param time
@@ -902,7 +902,7 @@ public void testAPI() {
902902

903903
/**
904904
* Helper method to check if the API is enabled and the player is not null.
905-
*
905+
*
906906
* @param player
907907
* The player to check
908908
* @return True if the API is enabled and the player is not null
@@ -913,7 +913,7 @@ private boolean isEnabledForPlayer(Player player) {
913913

914914
/**
915915
* Helper method to check if a user and location are valid.
916-
*
916+
*
917917
* @param user
918918
* The username to check
919919
* @param location

src/main/java/net/coreprotect/database/lookup/SignMessageLookup.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,5 +175,4 @@ else if (commandSender.hasPermission("coreprotect.coreprotect")) {
175175

176176
return result;
177177
}
178-
179178
}

0 commit comments

Comments
 (0)