Rebrand : remplace le package/groupId fr.northblue par fr.votenetwork

Projet destine a etre open source, plus aucune reference a "NorthBlue"
dans le code, les artifactId Maven ou les config par defaut.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
SarTron-NorthBlue
2026-07-12 13:18:33 +04:00
co-authored by Claude Sonnet 5
parent 8c69a0dc9a
commit 394267ca5a
26 changed files with 117 additions and 117 deletions
@@ -1,4 +1,4 @@
package fr.northblue.vote.velocity;
package fr.votenetwork.velocity;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
@@ -1,4 +1,4 @@
package fr.northblue.vote.velocity;
package fr.votenetwork.velocity;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
@@ -38,7 +38,7 @@ public class MySqlPendingVoteStore implements PendingVoteStore {
hikariConfig.setPassword(config.getPassword());
hikariConfig.setMaximumPoolSize(config.getPoolSize());
hikariConfig.setPoolName("VoteNetwork-Velocity-Pool");
hikariConfig.setDriverClassName("fr.northblue.vote.libs.mysql.cj.jdbc.Driver");
hikariConfig.setDriverClassName("fr.votenetwork.libs.mysql.cj.jdbc.Driver");
hikariConfig.setInitializationFailTimeout(-1);
hikariConfig.addDataSourceProperty("cachePrepStmts", "true");
hikariConfig.addDataSourceProperty("prepStmtCacheSize", "250");
@@ -1,4 +1,4 @@
package fr.northblue.vote.velocity;
package fr.votenetwork.velocity;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
@@ -1,4 +1,4 @@
package fr.northblue.vote.velocity;
package fr.votenetwork.velocity;
import com.velocitypowered.api.command.CommandSource;
import com.velocitypowered.api.command.SimpleCommand;
@@ -72,7 +72,7 @@ public class VoteCommand implements SimpleCommand {
logger.error("Erreur lors de la construction du message de vote", e);
return;
}
sink.sendPluginMessage(NorthBlueVoteVelocity.VOTE_CHANNEL, byteArray.toByteArray());
sink.sendPluginMessage(VoteNetworkVelocity.VOTE_CHANNEL, byteArray.toByteArray());
}
@Override
@@ -1,4 +1,4 @@
package fr.northblue.vote.velocity;
package fr.votenetwork.velocity;
import org.slf4j.Logger;
@@ -47,7 +47,7 @@ public class VoteConfig {
this.storageType = properties.getProperty("storage.type", "mysql");
this.host = properties.getProperty("mysql.host", "127.0.0.1");
this.port = Integer.parseInt(properties.getProperty("mysql.port", "3306"));
this.database = properties.getProperty("mysql.database", "northblue");
this.database = properties.getProperty("mysql.database", "votenetwork");
this.user = properties.getProperty("mysql.user", "root");
this.password = properties.getProperty("mysql.password", "");
this.poolSize = Integer.parseInt(properties.getProperty("mysql.pool-size", "5"));
@@ -1,4 +1,4 @@
package fr.northblue.vote.velocity;
package fr.votenetwork.velocity;
import com.google.inject.Inject;
import com.velocitypowered.api.event.Subscribe;
@@ -18,7 +18,7 @@ import java.nio.file.Path;
description = "Systeme de vote reseau Velocity <-> Spigot",
authors = {"VoteNetwork"}
)
public class NorthBlueVoteVelocity {
public class VoteNetworkVelocity {
public static final MinecraftChannelIdentifier VOTE_CHANNEL =
MinecraftChannelIdentifier.create("votenetwork", "vote");
@@ -31,7 +31,7 @@ public class NorthBlueVoteVelocity {
private PendingVoteStore pendingVoteStore;
@Inject
public NorthBlueVoteVelocity(ProxyServer proxy, Logger logger, @com.velocitypowered.api.plugin.annotation.DataDirectory Path dataDirectory) {
public VoteNetworkVelocity(ProxyServer proxy, Logger logger, @com.velocitypowered.api.plugin.annotation.DataDirectory Path dataDirectory) {
this.proxy = proxy;
this.logger = logger;
this.dataDirectory = dataDirectory;
@@ -1,4 +1,4 @@
package fr.northblue.vote.velocity;
package fr.votenetwork.velocity;
import org.slf4j.Logger;