Skip to content

show explicit error when duration format is invalid

147c73a
Select commit
Loading
Failed to load commit list.
Merged

Added optional duration for bans to enable temporary bans #53

show explicit error when duration format is invalid
147c73a
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Dec 26, 2025 in 0s

8 new issues (0 max.) of at least severity.

Annotations

Check warning on line 58 in src/main/java/pro/cloudnode/smp/smpcore/Configuration.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/main/java/pro/cloudnode/smp/smpcore/Configuration.java#L58

The String "t" appears 4 times in the file.

Check warning on line 28 in src/main/java/pro/cloudnode/smp/smpcore/Messages.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/main/java/pro/cloudnode/smp/smpcore/Messages.java#L28

Possible God Class (WMC=112, ATFD=182, TCC=0.000%)

Check warning on line 28 in src/main/java/pro/cloudnode/smp/smpcore/Messages.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/main/java/pro/cloudnode/smp/smpcore/Messages.java#L28

The class 'Messages' has a total cyclomatic complexity of 112 (highest 20).

Check warning on line 28 in src/main/java/pro/cloudnode/smp/smpcore/Messages.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/main/java/pro/cloudnode/smp/smpcore/Messages.java#L28

This class has too many methods, consider refactoring it.

Check warning on line 68 in src/main/java/pro/cloudnode/smp/smpcore/Messages.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/main/java/pro/cloudnode/smp/smpcore/Messages.java#L68

The String "player" appears 30 times in the file.

Check warning on line 68 in src/main/java/pro/cloudnode/smp/smpcore/Messages.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/main/java/pro/cloudnode/smp/smpcore/Messages.java#L68

The String literal "player" appears 30 times in this file; the first occurrence is on line 68

Check warning on line 72 in src/main/java/pro/cloudnode/smp/smpcore/Messages.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/main/java/pro/cloudnode/smp/smpcore/Messages.java#L72

The String "duration" appears 3 times in the file.

Check warning on line 72 in src/main/java/pro/cloudnode/smp/smpcore/Messages.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/main/java/pro/cloudnode/smp/smpcore/Messages.java#L72

The String literal "duration" appears 4 times in this file; the first occurrence is on line 72