diff --git a/src/engine/db/handlers/dbPetitionHandler.java b/src/engine/db/handlers/dbPetitionHandler.java index 3af4fd53..23237c01 100644 --- a/src/engine/db/handlers/dbPetitionHandler.java +++ b/src/engine/db/handlers/dbPetitionHandler.java @@ -65,7 +65,9 @@ public class dbPetitionHandler extends dbHandlerBase { preparedStatement.setInt(6, petition.reportPlayer.getObjectUUID()); preparedStatement.setString(7, petition.reportPlayer.getFirstName()); preparedStatement.setString(8, petition.playerLocation.toString()); - preparedStatement.setString(9, petition.message); + + String messageCleaned = petition.message.substring(0, Math.min(petition.message.length(), 255)); + preparedStatement.setString(9, messageCleaned); preparedStatement.executeUpdate();