Small bugfix with the logblock stick

This commit is contained in:
JeromSar 2013-08-26 17:48:19 +02:00
parent 5876f86ac3
commit 3da03393e6
3 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
#Mon, 26 Aug 2013 17:21:52 +0200
#Mon, 26 Aug 2013 17:47:26 +0200
program.VERSION=3.1
program.BUILDNUM=505
program.BUILDDATE=08/26/2013 05\:21 PM
program.BUILDNUM=507
program.BUILDDATE=08/26/2013 05\:47 PM

View file

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Mon Aug 26 17:21:52 CEST 2013
build.number=506
#Mon Aug 26 17:47:26 CEST 2013
build.number=508

View file

@ -105,7 +105,7 @@ public class TFM_PlayerListener implements Listener
TFM_Util.playerMsg(player, "Block edits at (" + ChatColor.WHITE + "X" + location.getBlockX() + ", Y" + location.getBlockY() + ", Z" + location.getBlockZ() + ChatColor.BLUE + ")" + ChatColor.WHITE + ":", ChatColor.BLUE);
for (RollbackEntry entry : entries)
{
String material = (entry.getType() == EntryType.BLOCK_BREAK ? entry.getFromMaterial() : entry.getToMaterial() + String.valueOf(entry.getData() == 0 ? entry.getData() : "")).toString();
String material = (entry.getType() == EntryType.BLOCK_BREAK ? String.valueOf(entry.getFromMaterial()) : entry.getToMaterial() + (entry.getData() != 0 ? ":" + String.valueOf(entry.getData()) : ""));
TFM_Util.playerMsg(player, " - " + ChatColor.BLUE + entry.getAuthor() + " " + entry.getType() + " " + material);
}