diff --git a/Plan/common/src/main/java/com/djrapitops/plan/extension/implementation/storage/transactions/results/StorePlayerStringResultTransaction.java b/Plan/common/src/main/java/com/djrapitops/plan/extension/implementation/storage/transactions/results/StorePlayerStringResultTransaction.java index c7d0e5134..70b64aa3a 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/extension/implementation/storage/transactions/results/StorePlayerStringResultTransaction.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/extension/implementation/storage/transactions/results/StorePlayerStringResultTransaction.java @@ -22,6 +22,7 @@ import com.djrapitops.plan.storage.database.sql.tables.ExtensionProviderTable; import com.djrapitops.plan.storage.database.transactions.ExecStatement; import com.djrapitops.plan.storage.database.transactions.Executable; import com.djrapitops.plan.storage.database.transactions.ThrowawayTransaction; +import org.apache.commons.lang3.StringUtils; import java.sql.PreparedStatement; import java.sql.SQLException; @@ -50,7 +51,7 @@ public class StorePlayerStringResultTransaction extends ThrowawayTransaction { this.providerName = provider.getProviderInformation().getName(); this.serverUUID = parameters.getServerUUID(); this.playerUUID = parameters.getPlayerUUID(); - this.value = value; + this.value = StringUtils.truncate(value, 50); } @Override diff --git a/Plan/common/src/main/java/com/djrapitops/plan/extension/implementation/storage/transactions/results/StoreServerStringResultTransaction.java b/Plan/common/src/main/java/com/djrapitops/plan/extension/implementation/storage/transactions/results/StoreServerStringResultTransaction.java index c9d7cb011..807a55d90 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/extension/implementation/storage/transactions/results/StoreServerStringResultTransaction.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/extension/implementation/storage/transactions/results/StoreServerStringResultTransaction.java @@ -22,6 +22,7 @@ import com.djrapitops.plan.storage.database.sql.tables.ExtensionProviderTable; import com.djrapitops.plan.storage.database.transactions.ExecStatement; import com.djrapitops.plan.storage.database.transactions.Executable; import com.djrapitops.plan.storage.database.transactions.ThrowawayTransaction; +import org.apache.commons.lang3.StringUtils; import java.sql.PreparedStatement; import java.sql.SQLException; @@ -47,7 +48,7 @@ public class StoreServerStringResultTransaction extends ThrowawayTransaction { this.pluginName = provider.getProviderInformation().getPluginName(); this.providerName = provider.getProviderInformation().getName(); this.serverUUID = parameters.getServerUUID(); - this.value = value; + this.value = StringUtils.truncate(value, 50); } @Override