forked from LogBlock/LogBlock
Fixed logging for player names longer than 32 chars
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user