Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
c24a5d2
Fix: Truncate UUID to fit varchar(16) column when handling duplicate …
JobsonMarinho Dec 9, 2025
4dc1141
Refactor: Implement robust player data synchronization with duplicate…
JobsonMarinho Dec 9, 2025
6af9ce9
fix: persist player name/UUID changes to database
JobsonMarinho Dec 9, 2025
aa8a116
fix: update UUID directly in database instead of deleting and inserting
JobsonMarinho Dec 9, 2025
efed8e6
fix: simplify duplicate player record handling and improve name corre…
JobsonMarinho Dec 9, 2025
017f96c
fix: add option for immediate clan player updates in database
JobsonMarinho Dec 9, 2025
ffbff15
fix: add option for immediate clan player updates in database
JobsonMarinho Dec 9, 2025
1050158
fix: streamline duplicate player record merging and update logic
JobsonMarinho Dec 9, 2025
83a1794
Update src/main/java/net/sacredlabyrinth/phaed/simpleclans/managers/S…
JobsonMarinho Dec 14, 2025
8fd971e
Update src/main/java/net/sacredlabyrinth/phaed/simpleclans/managers/S…
JobsonMarinho Dec 14, 2025
829eb1c
Update src/main/java/net/sacredlabyrinth/phaed/simpleclans/managers/S…
JobsonMarinho Dec 14, 2025
f1e1719
fix: add @NotNull annotations to player parameters for improved null …
JobsonMarinho Dec 14, 2025
ca317ef
fix: add null and empty check for player name retrieval
JobsonMarinho Dec 14, 2025
90b7378
fix: deprecate updatePlayerName method in favor of syncPlayerData for…
JobsonMarinho Dec 14, 2025
b713f21
fix: enhance player name update logic to prevent UUID truncation issues
JobsonMarinho Dec 14, 2025
196da12
fix: remove unnecessary @NotNull annotations and improve SQL query ha…
JobsonMarinho Dec 14, 2025
6beb4ea
fix: refactor SQL table creation queries for improved readability and…
JobsonMarinho Dec 23, 2025
4763a98
fix: update placeholderapi dependency version to 2.11.7
JobsonMarinho Jan 9, 2026
3020943
fix: move syncPlayerData to async thread to prevent main thread lag
JobsonMarinho Feb 16, 2026
056ef56
Remove outdated wiki pages related to ranks, clan setup, member fees,…
JobsonMarinho Feb 22, 2026
9fdf1ab
fix: optimize database query execution by reusing connection instances
JobsonMarinho Feb 22, 2026
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
19 changes: 0 additions & 19 deletions .mvn/wrapper/maven-wrapper.properties

This file was deleted.

11 changes: 0 additions & 11 deletions co/aikar/commands/annotations.xml

This file was deleted.

7 changes: 0 additions & 7 deletions org/bukkit/configuration/annotations.xml

This file was deleted.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.3</version>
<version>2.11.7</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,26 +174,14 @@ private void registerChatListener() {
}

private void updatePlayerName(@NotNull final Player player) {
// Update in-memory ClanPlayer if exists
final ClanPlayer cp = plugin.getClanManager().getAnyClanPlayer(player.getUniqueId());

ClanPlayer duplicate = null;
for (ClanPlayer other : plugin.getClanManager().getAllClanPlayers()) {
if (other.getName().equals(player.getName()) && !other.getUniqueId().equals(player.getUniqueId())) {
duplicate = other;
break;
}
}

if (duplicate != null) {
plugin.getLogger().warning(String.format("Found duplicate for %s, UUIDs: %s, %s", player.getName(),
player.getUniqueId(), duplicate.getUniqueId()));
duplicate.setName(duplicate.getUniqueId().toString());
plugin.getStorageManager().updatePlayerName(duplicate);
}
if (cp != null) {
cp.setName(player.getName());
plugin.getStorageManager().updatePlayerName(cp);
}

// Synchronize player data in database asynchronously
plugin.getStorageManager().syncPlayerDataAsync(player);
}

}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ default boolean checkConnection() {
* @return the result set or null if the query failed
*/
default @Nullable ResultSet select(String query) {
Connection connection = getConnection();
try {
return getConnection().createStatement().executeQuery(query);
return connection.createStatement().executeQuery(query);
} catch (SQLException ex) {
log.log(Level.SEVERE, String.format("Error executing query: %s", query), ex);
}
Expand All @@ -56,8 +57,8 @@ default boolean checkConnection() {
* @return true if the statement was executed
*/
default boolean execute(String query) {
try {
getConnection().createStatement().execute(query);
try (java.sql.Statement statement = getConnection().createStatement()) {
statement.execute(query);
return true;
} catch (SQLException ex) {
log.log(Level.SEVERE, String.format("Error executing query: %s", query), ex);
Expand All @@ -71,8 +72,7 @@ default boolean execute(String query) {
* @return true if the table exists
*/
default boolean existsTable(String table) {
try {
ResultSet tables = getConnection().getMetaData().getTables(null, null, table, null);
try (ResultSet tables = getConnection().getMetaData().getTables(null, null, table, null)) {
return tables.next();
} catch (SQLException ex) {
log.log(Level.SEVERE, String.format("Error checking if table %s exists", table), ex);
Expand All @@ -88,8 +88,7 @@ default boolean existsTable(String table) {
* @return true if the column exists
*/
default boolean existsColumn(String table, String column) {
try {
ResultSet col = getConnection().getMetaData().getColumns(null, null, table, column);
try (ResultSet col = getConnection().getMetaData().getColumns(null, null, table, column)) {
return col.next();
} catch (Exception ex) {
log.log(Level.SEVERE, String.format("Error checking if column %s exists in table %s", column, table), ex);
Expand All @@ -100,9 +99,10 @@ default boolean existsColumn(String table, String column) {
default void executeUpdate(String query) {
final Exception exception = new Exception(); // Stores a reference to the caller's stack trace for async tasks
Runnable executeUpdate = () -> {
if (getConnection() != null) {
try {
getConnection().createStatement().executeUpdate(query);
Connection connection = getConnection();
if (connection != null) {
try (java.sql.Statement statement = connection.createStatement()) {
statement.executeUpdate(query);
} catch (SQLException ex) {
log.log(Level.SEVERE, String.format("Error executing query: %s", query), ex);
if (!Bukkit.isPrimaryThread()) {
Expand Down
Binary file removed wiki/.gitbook/assets/2021-08-30_17.58.13.png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/2021-08-30_18.09.22.png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/clans-below-name.png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/clans-tablist.png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/izobrazhenie (1).png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/izobrazhenie (2).png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/izobrazhenie (3).png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/izobrazhenie (4) (1).png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/izobrazhenie (4).png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/izobrazhenie (5) (1).png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/izobrazhenie (5).png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/izobrazhenie (6).png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/izobrazhenie.png
Binary file not shown.
Binary file removed wiki/.gitbook/assets/klan.png
Binary file not shown.
24 changes: 0 additions & 24 deletions wiki/README.md

This file was deleted.

29 changes: 0 additions & 29 deletions wiki/SUMMARY.md

This file was deleted.

33 changes: 0 additions & 33 deletions wiki/commands-and-permissions/aliances-and-rivalries.md

This file was deleted.

118 changes: 0 additions & 118 deletions wiki/commands-and-permissions/commands.md

This file was deleted.

Loading