Skip to content

Commit

Permalink
... And now it compiles!
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 28, 2013
1 parent 3813eee commit 5264fc4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Expand Up @@ -155,7 +155,7 @@ public void listenBreak(BlockBreakEvent event) {
//if catch-all specified, count it!
if (blocks.contains("*")) {
blocks_so_far++;
dB.echoDebug(ChatColor.YELLOW + "// " + player.getName()
dB.log(ChatColor.YELLOW + "// " + player.getName()
+ " broke a(n) " + event.getBlock().getType().toString()
+ ".");
check();
Expand All @@ -170,7 +170,7 @@ public void listenBreak(BlockBreakEvent event) {
if (event.getBlock().getState().getType() == mat.getMaterial() &&
event.getBlock().getState().getData().equals(mat.getMaterialData())){
blocks_so_far++;
dB.echoDebug(ChatColor.YELLOW + "// " + player.getName()
dB.log(ChatColor.YELLOW + "// " + player.getName()
+ " broke a(n) " + event.getBlock().getType().toString()
+ ".");
check();
Expand Down Expand Up @@ -200,7 +200,7 @@ public void listenCollect(PlayerPickupItemEvent event) {
//if catch-all specified, count it!
if (blocks.contains("*")) {
blocks_so_far++;
dB.echoDebug(ChatColor.YELLOW + "// " + player.getName()
dB.log(ChatColor.YELLOW + "// " + player.getName()
+ " collected a(n) " + event.getItem().getItemStack().getType().toString()
+ ".");
check();
Expand All @@ -219,7 +219,7 @@ public void listenCollect(PlayerPickupItemEvent event) {
else itemsCollected.add(event.getItem().getEntityId());

blocks_so_far++;
dB.echoDebug(ChatColor.YELLOW + "// " + player.getName()
dB.log(ChatColor.YELLOW + "// " + player.getName()
+ " collected a(n) " + event.getItem().getItemStack().getType().toString()
+ ".");
check();
Expand All @@ -246,7 +246,7 @@ public void listenBucket(PlayerBucketFillEvent event) {
//if catch-all specified, count it!
if (blocks.contains("*")) {
blocks_so_far++;
dB.echoDebug(ChatColor.YELLOW + "// "
dB.log(ChatColor.YELLOW + "// "
+ player.getName() + " collected a "
+ event.getBucket().name() + ".");
check();
Expand All @@ -259,7 +259,7 @@ public void listenBucket(PlayerBucketFillEvent event) {

if (event.getBucket() == mat.getMaterial()){
blocks_so_far++;
dB.echoDebug(ChatColor.YELLOW + "// "
dB.log(ChatColor.YELLOW + "// "
+ player.getName() + " collected a "
+ event.getBucket().name() + ".");

Expand Down Expand Up @@ -289,7 +289,7 @@ public void listenPlace(BlockPlaceEvent event) {
//if catch-all specified, count it!
if (blocks.contains("*")) {
blocks_so_far++;
dB.echoDebug(ChatColor.YELLOW + "// " + player.getName()
dB.log(ChatColor.YELLOW + "// " + player.getName()
+ " placed a(n) " + event.getBlock().getType().toString()
+ ".");
check();
Expand All @@ -303,7 +303,7 @@ public void listenPlace(BlockPlaceEvent event) {
if (event.getBlock().getState().getType() == mat.getMaterial() &&
event.getBlock().getState().getData().equals(mat.getMaterialData())){
blocks_so_far++;
dB.echoDebug(ChatColor.YELLOW + "// " + player.getName()
dB.log(ChatColor.YELLOW + "// " + player.getName()
+ " placed a(n) " + event.getBlock().getType().toString()
+ ".");
check();
Expand Down
Expand Up @@ -68,7 +68,7 @@ else if (arg.matchesPrefix("cuboid, c")

public void increment(String object, int amount) {
items_so_far = items_so_far + amount;
dB.echoDebug(ChatColor.YELLOW + "// " + player.getName() + " " +
dB.log(ChatColor.YELLOW + "// " + player.getName() + " " +
type.toString().toLowerCase() + "ed " + amount + " " + object + ".");
check();
}
Expand Down
Expand Up @@ -3174,7 +3174,7 @@ public void playerChat(final PlayerChatEvent event) {

// If currently recording debug information, quickly add the chat message to debug output
// (Intentionally placed in the sync event to prevent glitching)
if (dB.record) dB.echoDebug(ChatColor.DARK_GREEN + "CHAT: " +
if (dB.record) dB.log(ChatColor.DARK_GREEN + "CHAT: " +
event.getPlayer().getName() + ": " + event.getMessage());

// Return if "Use asynchronous event" is true in config file
Expand Down

0 comments on commit 5264fc4

Please sign in to comment.