Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 1.4.9 Release (10.10.2026)
* Changed XSeries version from 13.7.1 to 14.0.0
* Changed FastInv version from v3.1.2 to 3.1.2
* Changed FastBoard version from to 2.2.2

### 1.4.5 Release (13.05.2026)
* Added KitAbilites
* Added file based kits usage (first in vd)
Expand Down
4 changes: 2 additions & 2 deletions MiniGamesBox API/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>minigamesbox</artifactId>
<groupId>plugily.projects</groupId>
<version>1.4.8</version>
<version>1.4.8-SNAPSHOT1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -53,7 +53,7 @@
<dependency>
<groupId>com.github.cryptomorin</groupId>
<artifactId>XSeries</artifactId>
<version>13.7.1</version>
<version>14.0.0</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
Expand Down
6 changes: 3 additions & 3 deletions MiniGamesBox Classic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>minigamesbox</artifactId>
<groupId>plugily.projects</groupId>
<version>1.4.8</version>
<version>1.4.8-SNAPSHOT1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -68,7 +68,7 @@
<dependency>
<groupId>fr.mrmicky</groupId>
<artifactId>fastboard</artifactId>
<version>2.2.1</version>
<version>2.2.2</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
Expand All @@ -81,7 +81,7 @@
<dependency>
<groupId>com.github.cryptomorin</groupId>
<artifactId>XSeries</artifactId>
<version>13.7.1</version>
<version>14.0.0</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
public boolean hasLinesMaxLength() {
return isLinesMaxLength(getPlayer());
}
@Override
public boolean hasCustomScores() {
return customScores(getPlayer());
}
};

board.updateTitle(boardTitle);
Expand Down Expand Up @@ -100,14 +104,14 @@
List<String> formattedLines = new ArrayList<>();
if(isLinesMaxLength(player)) {
List<String> linesWithoutSpecialChars = new ArrayList<>();
for(String line : lines) {

Check warning on line 107 in MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/arena/managers/PluginScoreboardManager.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use a stream instead of this loop.

See more on https://sonarcloud.io/project/issues?id=Plugily-Projects_MiniGamesBox&issues=AaElrj1kHOGTnYf8G4bK&open=AaElrj1kHOGTnYf8G4bK&pullRequest=81
linesWithoutSpecialChars.add(line
.replace(ChatColor.translateAlternateColorCodes('&', new MessageBuilder("COLOR_CHAT_MESSAGES").asKey().getRaw() + new MessageBuilder("COLOR_CHAT_SPECIAL_BEFORE").asKey().getRaw() + "■" + new MessageBuilder("COLOR_CHAT_MESSAGES").asKey().getRaw() + " "), "")
.replace(ChatColor.translateAlternateColorCodes('&', new MessageBuilder("COLOR_CHAT_SPECIAL_BEFORE").asKey().getRaw() + "|" + new MessageBuilder("COLOR_CHAT_MESSAGES").asKey().getRaw() + " "), ""));
}
lines = linesWithoutSpecialChars;
}
for(String line : lines) {

Check warning on line 114 in MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/arena/managers/PluginScoreboardManager.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use a stream instead of this loop.

See more on https://sonarcloud.io/project/issues?id=Plugily-Projects_MiniGamesBox&issues=AaElrj1kHOGTnYf8G4bL&open=AaElrj1kHOGTnYf8G4bL&pullRequest=81
formattedLines.add(new MessageBuilder(line).player(player).arena(arena).build());
}
return formattedLines;
Expand All @@ -124,4 +128,15 @@
return !ServerVersion.Version.isCurrentEqualOrHigher(ServerVersion.Version.v1_13);
}

private boolean customScores(Player player) {
if(Bukkit.getPluginManager().isPluginEnabled("ViaVersion")) {
try {
return Via.getAPI().getPlayerVersion(player) >= ProtocolVersion.v1_20_3.getVersion();
} catch(Exception ignored) {
//Not using ViaVersion 4 or unable to get ViaVersion return LegacyBoard!
}
}
return ServerVersion.Version.isCurrentEqualOrHigher(ServerVersion.Version.v1_21);
}

}
2 changes: 1 addition & 1 deletion MiniGamesBox Database/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>minigamesbox</artifactId>
<groupId>plugily.projects</groupId>
<version>1.4.8</version>
<version>1.4.8-SNAPSHOT1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions MiniGamesBox Inventory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>minigamesbox</artifactId>
<groupId>plugily.projects</groupId>
<version>1.4.8</version>
<version>1.4.8-SNAPSHOT1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -45,7 +45,7 @@
<dependency>
<groupId>fr.mrmicky</groupId>
<artifactId>FastInv</artifactId>
<version>v3.1.2</version>
<version>3.1.2</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion MiniGamesBox Utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>minigamesbox</artifactId>
<groupId>plugily.projects</groupId>
<version>1.4.8</version>
<version>1.4.8-SNAPSHOT1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<groupId>plugily.projects</groupId>
<artifactId>minigamesbox</artifactId>
<version>1.4.8</version>
<version>1.4.8-SNAPSHOT1</version>
<packaging>pom</packaging>

<modules>
Expand Down
Loading