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:
co-authored by
Claude Sonnet 5
parent
8c69a0dc9a
commit
394267ca5a
+5
-5
@@ -5,12 +5,12 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>fr.northblue</groupId>
|
||||
<artifactId>northblue-vote-parent</artifactId>
|
||||
<groupId>fr.votenetwork</groupId>
|
||||
<artifactId>votenetwork-parent</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>northblue-vote-velocity</artifactId>
|
||||
<artifactId>votenetwork-velocity</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
@@ -74,11 +74,11 @@
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>com.zaxxer.hikari</pattern>
|
||||
<shadedPattern>fr.northblue.vote.libs.hikari</shadedPattern>
|
||||
<shadedPattern>fr.votenetwork.libs.hikari</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>com.mysql</pattern>
|
||||
<shadedPattern>fr.northblue.vote.libs.mysql</shadedPattern>
|
||||
<shadedPattern>fr.votenetwork.libs.mysql</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
<transformers>
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package fr.northblue.vote.velocity;
|
||||
package fr.votenetwork.velocity;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import com.google.gson.JsonParser;
|
||||
+2
-2
@@ -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
-1
@@ -1,4 +1,4 @@
|
||||
package fr.northblue.vote.velocity;
|
||||
package fr.votenetwork.velocity;
|
||||
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
+2
-2
@@ -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
|
||||
+2
-2
@@ -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"));
|
||||
+3
-3
@@ -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
-1
@@ -1,4 +1,4 @@
|
||||
package fr.northblue.vote.velocity;
|
||||
package fr.votenetwork.velocity;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
|
||||
Reference in New Issue
Block a user