Truncate Extension String values

Fixed regression bug from refactoring

Affects issues:
- Fixed #1333, #1338
This commit is contained in:
Rsl1122 2020-02-20 14:35:19 +02:00
parent feb54c632e
commit 03bb211c51
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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