Fixed logging for player names longer than 32 chars

This commit is contained in:
Robin Kupper
2011-03-13 15:38:23 +01:00
parent e3eb5a35aa
commit 9d2cee1cd1

View File

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