From 9d2cee1cd10b54c3e0c8927c138ec9953cc07442 Mon Sep 17 00:00:00 2001 From: Robin Kupper Date: Sun, 13 Mar 2011 15:38:23 +0100 Subject: [PATCH] Fixed logging for player names longer than 32 chars --- src/de/diddiz/LogBlock/LogBlock.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/diddiz/LogBlock/LogBlock.java b/src/de/diddiz/LogBlock/LogBlock.java index 50a954f..8fc1b1c 100644 --- a/src/de/diddiz/LogBlock/LogBlock.java +++ b/src/de/diddiz/LogBlock/LogBlock.java @@ -356,6 +356,8 @@ public class LogBlock extends JavaPlugin String table = getTable(block); if (table == null) return; + if (playerName.length() > 32) + playerName = playerName.substring(0, 31); BlockRow row = new BlockRow(table, playerName, typeBefore, typeAfter, data, block.getX(), block.getY(), block.getZ()); if (signtext != null) row.signtext = signtext;