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
11 changes: 11 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
### 1.3.16 Release (04.03.2025)
* Changed Scoreboard API (now paket based) (Thanks MrMicky-FR FastBoard)
* Changed Scoreboard on lower 1.12.2 now supports 30 chars
* Changed Scoreboard on 1.13+ now supports unlimited chars
* Changed Scoreboard on 1.20.3 will hide red score numbers
* Changed pom files to build java 8 builds without errors
* Changed Potion methods to support all versions
* Removed ProtocolSupport for Scoreboard Actions
* Fixed Progress must be between 0 and 1
* Fixed ItemBuilder.glowEffect

### (1.3.11-)1.3.15 Release (17.02.2025)
* Added 1.21.1-4 support
* Added (3) new ConfigOptions for ArmorStands (BLOCK_IN_GAME_ARMOR_STAND_DESTROY, BLOCK_IN_GAME_ARMOR_STAND_CHECK, BLOCK_IN_GAME_ARMOR_STAND_INTERACT)
Expand Down
100 changes: 100 additions & 0 deletions .github/maven/api/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ MiniGamesBox - Library box with massive content that could be seen as minigames core.
~ Copyright (C) 2023 Plugily Projects - maintained by Tigerpanzer_02 and contributors
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>minigamesbox</artifactId>
<groupId>plugily.projects</groupId>
<version>1.3.3.1-java8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>MiniGamesBox-Api</artifactId>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>


<repositories>
<repository>
<id>mojang-repo</id>
<url>https://libraries.minecraft.net/</url>
</repository>
<repository>
<id>simonsators-repo</id>
<url>https://simonsator.de/repo/</url>
</repository>
<repository>
<id>alessiodp-repo</id>
<url>https://repo.alessiodp.com/releases/</url>
</repository>
<repository>
<id>plugilyprojects-repo</id>
<url>https://maven.plugily.xyz/releases</url>
</repository>
<repository>
<id>papi-repo</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>plugily.projects</groupId>
<artifactId>MiniGamesBox-Database</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.github.cryptomorin</groupId>
<artifactId>XSeries</artifactId>
<version>13.0.0</version>
<optional>true</optional>
</dependency>
</dependencies>


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.0</version>
<configuration>
<windowtitle>MiniGamesBox Inventory API docs for v${project.version}</windowtitle>
<description>Library box with massive content that could be seen as minigames core.</description>
<destDir>minecraft/minigamesbox/inventory</destDir>
<isOffline>false</isOffline>
</configuration>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>3.5.2</version>
</extension>
</extensions>
</build>
</project>
51 changes: 38 additions & 13 deletions .github/maven/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.3.2-java8</version>
<version>1.3.3.1-java8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -54,6 +54,14 @@
<id>papi-repo</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
<repository>
<id>via-version</id>
<url>https://repo.viaversion.com</url>
</repository>
<repository>
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

<dependencies>
Expand All @@ -64,24 +72,34 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.tigerhix.lib</groupId>
<artifactId>scoreboard</artifactId>
<version>1.4.0</version>
<scope>compile</scope>
<groupId>fr.mrmicky</groupId>
<artifactId>fastboard</artifactId>
<version>2.1.3</version>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.viaversion</groupId>
<artifactId>viaversion-api</artifactId>
<version>5.2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.ProtocolSupport</groupId>
<artifactId>ProtocolSupport</artifactId>
<version>master</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.cryptomorin</groupId>
<artifactId>XSeries</artifactId>
<version>9.4.0</version>
<version>13.0.0</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.openjdk.nashorn</groupId>
<artifactId>nashorn-core</artifactId>
<version>15.4</version>
</dependency>
<dependency>
<groupId>de.simonsator</groupId>
<artifactId>DevelopmentPAFSpigot</artifactId>
Expand Down Expand Up @@ -120,6 +138,13 @@
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>plugily.projects</groupId>
<artifactId>MiniGamesBox-Api</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>plugily.projects</groupId>
<artifactId>MiniGamesBox-Database</artifactId>
Expand Down Expand Up @@ -187,7 +212,7 @@
<shadedPattern>plugily.projects.minigamesbox.classic.utils.version.xseries</shadedPattern>
</relocation>
<relocation>
<pattern>me.tigerhix.lib.scoreboard</pattern>
<pattern>fr.mrmicky.fastboard</pattern>
<shadedPattern>plugily.projects.minigamesbox.classic.utils.scoreboard</shadedPattern>
</relocation>
<relocation>
Expand Down
2 changes: 1 addition & 1 deletion .github/maven/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.3.2-java8</version>
<version>1.3.3.1-java8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion .github/maven/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.3.2-java8</version>
<version>1.3.3.1-java8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
7 changes: 4 additions & 3 deletions .github/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@

<groupId>plugily.projects</groupId>
<artifactId>minigamesbox</artifactId>
<version>1.3.2-java8</version>
<version>1.3.3.1-java8</version>
<packaging>pom</packaging>

<modules>
<module>MiniGamesBox Inventory</module>
<module>MiniGamesBox Utils</module>
<module>MiniGamesBox Database</module>
<module>MiniGamesBox Classic</module>
<module>MiniGamesBox API</module>
</modules>

<name>MiniGamesBox</name>
Expand All @@ -47,7 +48,7 @@
<repositories>
<repository>
<id>papermc</id>
<url>https://papermc.io/repo/repository/maven-public/</url>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>spigot-repo</id>
Expand All @@ -71,7 +72,7 @@
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.20.1-R0.1-SNAPSHOT</version>
<version>1.21.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!--This adds the Spigot API artifact to the build -->
Expand Down
2 changes: 1 addition & 1 deletion .github/maven/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.3.2-java8</version>
<version>1.3.3.1-java8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
1 change: 0 additions & 1 deletion MiniGamesBox API/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ plugins {
}

dependencies {
implementation("me.tigerhix.lib:scoreboard:1.4.5") { isTransitive = false }
compileOnly(project(":MiniGamesBox-Database", "shadow"))
compileOnly("com.github.cryptomorin:XSeries:13.0.0") { isTransitive = false }
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package plugily.projects.minigamesbox.api.arena.managers;

import me.tigerhix.lib.scoreboard.type.Entry;
import org.bukkit.entity.Player;
import plugily.projects.minigamesbox.api.user.IUser;

import java.util.List;
Expand Down Expand Up @@ -34,5 +34,13 @@ public interface IPluginScoreboardManager {
*/
void stopAllScoreboards();

List<Entry> formatScoreboard(IUser user);
/**
* Get Lines from the language.yml according to arena state
*/
List<String> getScoreboardLines();

/**
* Update lines with defined placeholders
*/
List<String> formatScoreboardLines(List<String> lines, Player player);
}
10 changes: 8 additions & 2 deletions MiniGamesBox Classic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ plugins {

repositories {
maven("https://repo2.acrylicstyle.xyz/")
maven(uri("https://repo.viaversion.com"))
}

dependencies {
implementation("me.tigerhix.lib:scoreboard:1.4.5") { isTransitive = false }
implementation("fr.mrmicky:fastboard:2.1.3") { isTransitive = false }
implementation("com.github.cryptomorin:XSeries:13.0.0") { isTransitive = false }
implementation(project(":MiniGamesBox-API", "shadow"))
implementation(project(":MiniGamesBox-Inventory", "shadow"))
Expand All @@ -37,6 +38,7 @@ dependencies {
implementation("io.papermc:paperlib:1.0.8")
implementation("org.openjdk.nashorn:nashorn-core:15.4")
implementation("org.ow2.asm:asm:9.6")
compileOnly("com.viaversion:viaversion-api:5.2.1")
compileOnly("com.mojang:authlib:3.13.56")
compileOnly("de.simonsator:DevelopmentPAFSpigot:1.0.67")
compileOnly("de.simonsator:Party-and-Friends-MySQL-Edition-Spigot-API:1.5.4-RELEASE")
Expand All @@ -59,11 +61,15 @@ tasks {
relocate("org.openjdk.nashorn", "plugily.projects.minigamesbox.classic.utils.skript.nashorn")
relocate("com.cryptomorin.xseries.particles", "plugily.projects.minigamesbox.classic.utils.version.xseries")
relocate("com.cryptomorin.xseries", "plugily.projects.minigamesbox.classic.utils.version.xseries")
relocate("me.tigerhix.lib.scoreboard", "plugily.projects.minigamesbox.classic.utils.scoreboard")
relocate("fr.mrmicky.fastboard", "plugily.projects.minigamesbox.classic.utils.scoreboard")
relocate("org.bstats", "plugily.projects.minigamesbox.classic.utils.bstats")
relocate("io.papermc.lib", "plugily.projects.minigamesbox.classic.utils.paperlib")
}

javadoc() {
exclude("**/ProtocolSupport/**")
}

processResources {
filesMatching("**/plugin.yml") {
expand(project.properties)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

package plugily.projects.minigamesbox.classic;

import me.tigerhix.lib.scoreboard.ScoreboardLib;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.ArmorStand;
Expand Down Expand Up @@ -206,9 +205,6 @@ public void onEnable() {
//setup ItemManager
ItemManager.register(this);

//setup Scoreboard
ScoreboardLib.setPluginInstance(this);

//initialize default classes
initializeDefaultClasses();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package plugily.projects.minigamesbox.classic.arena;

import com.cryptomorin.xseries.XPotion;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
Expand Down Expand Up @@ -107,7 +108,7 @@ public static CompletableFuture<Void> preparePlayerForGame(
player.setAllowFlight(true);
player.setFlying(true);
user.setSpectator(true);
player.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, Integer.MAX_VALUE, 0));
XPotion.NIGHT_VISION.buildPotionEffect(Integer.MAX_VALUE, 1).apply(player);
plugin
.getSpecialItemManager()
.addSpecialItemsOfStage(player, SpecialItem.DisplayStage.SPECTATOR);
Expand Down
Loading