Skip to content

Commit

Permalink
Updated upstream builds. Bungee/Spigot
Browse files Browse the repository at this point in the history
Added try/catch for an error I cannot reproduce
Bumped plugin version
  • Loading branch information
BGHDDevelopment committed Jan 20, 2024
1 parent fd296ab commit a093364
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 17 deletions.
6 changes: 3 additions & 3 deletions addon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.jaimemartz</groupId>
<artifactId>playerbalancer-parent</artifactId>
<version>2.3.4</version>
<version>2.3.5</version>
</parent>

<artifactId>playerbalancer-addon</artifactId>
Expand All @@ -29,13 +29,13 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.18.2-R0.1-SNAPSHOT</version>
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.1</version>
<version>2.11.5</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class PlayerBalancerAddon extends JavaPlugin {
private PluginMessageManager manager;
private PlayerBalancerPlaceholderExpansion expansion;
private ConfigurationFile config;
private String version = "2.3.4";
private String version = "2.3.5";

@Override
public void onEnable() {
Expand Down
2 changes: 1 addition & 1 deletion balancer-velocity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<parent>
<groupId>com.jaimemartz</groupId>
<version>2.3.4</version>
<version>2.3.5</version>
<artifactId>playerbalancer-parent</artifactId>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@Plugin(
id = "playerbalancer",
name = "PlayerBalancer Velocity",
version = "2.3.4",
version = "2.3.5",
description = "PlayerBalancer is a plugin for setting up a network with multiple lobbies of different types.",
authors = {"jaime29010", "BGHDDevelopment", "HappyAreaBean"},
dependencies = {
Expand Down Expand Up @@ -81,7 +81,7 @@ public class PlayerBalancer {
private final Metrics.Factory metricsFactory;
private final PluginContainer container;
private final Path dataDirectory;
private String version = "2.3.4";
private String version = "2.3.5";

@Inject
public PlayerBalancer(ProxyServer proxyServer, Logger logger, Metrics.Factory metricsFactory, PluginContainer container, @DataDirectory Path dataDirectory) {
Expand Down
4 changes: 2 additions & 2 deletions balancer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<parent>
<groupId>com.jaimemartz</groupId>
<version>2.3.4</version>
<version>2.3.5</version>
<artifactId>playerbalancer-parent</artifactId>
</parent>

Expand Down Expand Up @@ -62,7 +62,7 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-proxy</artifactId>
<version>1.15-SNAPSHOT</version>
<version>1.20-R0.3-SNAPSHOT</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ public void updateCheck() {
getLogger().log(Level.WARNING, ("Your PlayerBalancer version is out of date!"));
getLogger().log(Level.WARNING, ("We recommend updating ASAP!"));
getLogger().log(Level.WARNING, (""));
getLogger().log(Level.WARNING, ("Your Version: &e" + getDescription().getVersion()));
getLogger().log(Level.WARNING, ("Newest Version: &e" + version));
getLogger().log(Level.WARNING, ("Your Version: " + getDescription().getVersion()));
getLogger().log(Level.WARNING, ("Newest Version: " + version));
getLogger().log(Level.WARNING, (""));
getLogger().log(Level.WARNING, (""));
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ private ServerSection getSection(ProxiedPlayer player, ServerInfo from) {
}

if (target == null) {
MessageUtils.send(player, messages.getUnavailableServerMessage());
try {
MessageUtils.send(player, messages.getUnavailableServerMessage());
return null;
} catch (NullPointerException exception) {
//Do because this randomly is firing NPE for some new versions
plugin.getLogger().info("PlayerBalancer caught an NPE on ServerKickListener. This can be reported but the actual cause is unknown at this time.");
}
return null;
}

Expand Down
4 changes: 2 additions & 2 deletions partyandfriendsaddon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.bghddevelopment.partyandfriendsaddon</groupId>
<artifactId>PBServerConnector</artifactId>
<version>2.3.4</version>
<version>2.3.5</version>
<packaging>jar</packaging>

<name>PartyAndFriendsAddon</name>
Expand Down Expand Up @@ -91,7 +91,7 @@
<dependency>
<groupId>com.jaimemartz</groupId>
<artifactId>playerbalancer</artifactId>
<version>2.3.4</version>
<version>2.3.5</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.jaimemartz</groupId>
<artifactId>playerbalancer-parent</artifactId>
<version>2.3.4</version>
<version>2.3.5</version>
<packaging>pom</packaging>

<modules>
Expand Down Expand Up @@ -142,13 +142,13 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<version>1.18.26</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit a093364

Please sign in to comment.