Removed unused repos, and added a new placeholder
This commit is contained in:
34
pom.xml
34
pom.xml
@@ -36,25 +36,13 @@
|
|||||||
<id>placeholderapi-repo</id>
|
<id>placeholderapi-repo</id>
|
||||||
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
|
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
|
||||||
<id>enginehub-repo</id>
|
|
||||||
<url>https://maven.enginehub.org/repo/</url>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>jitpack.io</id>
|
|
||||||
<url>https://jitpack.io</url>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
<repository>
|
||||||
<id>essentials-releases</id>
|
<id>essentials-releases</id>
|
||||||
<url>https://repo.essentialsx.net/releases/</url>
|
<url>https://repo.essentialsx.net/releases/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>bstats-repo</id>
|
<id>jitpack.io</id>
|
||||||
<url>https://repo.codemc.io/repository/maven-public/</url>
|
<url>https://jitpack.io</url>
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>opencollab-snapshot</id>
|
|
||||||
<url>https://repo.opencollab.dev/main/</url>
|
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -64,12 +52,6 @@
|
|||||||
<version>1.21.4-R0.1-SNAPSHOT</version>
|
<version>1.21.4-R0.1-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>net.essentialsx</groupId>
|
|
||||||
<artifactId>EssentialsX</artifactId>
|
|
||||||
<version>2.21.0</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>me.clip</groupId>
|
<groupId>me.clip</groupId>
|
||||||
<artifactId>placeholderapi</artifactId>
|
<artifactId>placeholderapi</artifactId>
|
||||||
@@ -77,15 +59,15 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.sk89q.worldedit</groupId>
|
<groupId>net.essentialsx</groupId>
|
||||||
<artifactId>worldedit-core</artifactId>
|
<artifactId>EssentialsX</artifactId>
|
||||||
<version>7.3.1</version>
|
<version>2.21.0</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.sk89q.worldguard</groupId>
|
<groupId>com.github.booksaw</groupId>
|
||||||
<artifactId>worldguard-bukkit</artifactId>
|
<artifactId>BetterTeams</artifactId>
|
||||||
<version>7.0.13</version>
|
<version>4.11.0</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ public final class GalaxyBoxPvP extends JavaPlugin implements TabExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void convertInventoryItems(Player player, Material fromMaterial, Material toMaterial, int fromCount, int toCount) {
|
private void convertInventoryItems(Player player, Material fromMaterial, Material toMaterial, int fromCount, @SuppressWarnings("SameParameterValue") int toCount) {
|
||||||
ItemStack[] inventoryContents = player.getInventory().getContents();
|
ItemStack[] inventoryContents = player.getInventory().getContents();
|
||||||
|
|
||||||
Bukkit.getScheduler().runTask(this, () -> {
|
Bukkit.getScheduler().runTask(this, () -> {
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package xyz.lncvrt.galaxyboxpvp;
|
package xyz.lncvrt.galaxyboxpvp;
|
||||||
|
|
||||||
|
import com.booksaw.betterTeams.Team;
|
||||||
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Statistic;
|
import org.bukkit.Statistic;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
@@ -43,6 +45,14 @@ public final class PlaceholderAPIExpansion extends PlaceholderExpansion {
|
|||||||
int kills = player.getStatistic(Statistic.PLAYER_KILLS);
|
int kills = player.getStatistic(Statistic.PLAYER_KILLS);
|
||||||
int deaths = player.getStatistic(Statistic.DEATHS);
|
int deaths = player.getStatistic(Statistic.DEATHS);
|
||||||
return deaths == 0 ? String.valueOf(kills) : String.format("%.1f", (double) kills / deaths);
|
return deaths == 0 ? String.valueOf(kills) : String.format("%.1f", (double) kills / deaths);
|
||||||
|
case "team":
|
||||||
|
Team team1 = Team.getTeam(player);
|
||||||
|
if (team1 == null) return "";
|
||||||
|
return ChatColor.translateAlternateColorCodes('&', "%s[%s%s%s%s]%s ".formatted(ChatColor.GRAY, ChatColor.RESET, team1.getDisplayName(), ChatColor.RESET, ChatColor.GRAY, ChatColor.RESET));
|
||||||
|
case "teamname":
|
||||||
|
Team team2 = Team.getTeam(player);
|
||||||
|
if (team2 == null) return "None";
|
||||||
|
return team2.getName();
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ depend:
|
|||||||
- Essentials
|
- Essentials
|
||||||
- WorldEdit
|
- WorldEdit
|
||||||
- WorldGuard
|
- WorldGuard
|
||||||
|
- BetterTeams
|
||||||
commands:
|
commands:
|
||||||
autocompress:
|
autocompress:
|
||||||
description: Auto compressor
|
description: Auto compressor
|
||||||
|
|||||||
Reference in New Issue
Block a user