Fixed logging for player names longer than 32 chars
This commit is contained in:
1 parent
e3eb5a35aa
commit
9d2cee1cd1
1 file changed
+2
@@ -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