Skip to content

Commit

Permalink
Version 0.6.2 ALPHA
Browse files Browse the repository at this point in the history
* 1.2.3-R0.2 Tested.
* Fixed package names.
* Updated Metrics to R5.
  • Loading branch information
Fishrock123 committed Mar 9, 2012
1 parent d29426a commit 2debab0
Show file tree
Hide file tree
Showing 14 changed files with 521 additions and 335 deletions.
6 changes: 2 additions & 4 deletions DecoyBlocks/plugin.yml
@@ -1,12 +1,10 @@
name: DecoyBlocks
main: Fishrock123.DecoyBlocks.DecoyBlocks
version: 0.6.1 ALPHA (1E4)
main: com.fishrock123.decoyblocks.DecoyBlocks
version: 0.6.2 ALPHA (1E5)
author: Fishrock123
dev-url: http://dev.bukkit.org/server-mods/decoyblocks/
commands:
db:
description: ''
usage: ''
permission: decoyblocks
permissions:
decoyblocks.*:
Expand Down
309 changes: 0 additions & 309 deletions DecoyBlocks/src/Fishrock123/DecoyBlocks/Metrics.java

This file was deleted.

@@ -1,4 +1,4 @@
package Fishrock123.DecoyBlocks;
package com.fishrock123.decoyblocks;

import org.bukkit.Bukkit;
import org.bukkit.Location;
Expand Down Expand Up @@ -38,7 +38,7 @@ public byte getData() {
}

public String toString() {
return Material.getMaterial(id) + ":(" + data + ") -: (" + loc.getWorld().getName() + ")(X:" + (long)loc.getX() + ")(Y:" + (long)loc.getY() + ")(Z:" + (long)loc.getZ() + ")";
return Material.getMaterial(id) + ":(" + data + ") -: (`" + loc.getWorld().getName() + "`)(X:" + (long)loc.getX() + ")(Y:" + (long)loc.getY() + ")(Z:" + (long)loc.getZ() + ')';
}

public void autoRestore(final Plugin plugin, long seconds) {
Expand All @@ -48,7 +48,7 @@ public void run() {
if (rb.getTypeId() != id || rb.getData() != data) {
rb.setTypeIdAndData(id, data, true);
if (rb.isEmpty() || rb.getTypeId() != id || rb.getData() != data) {
plugin.getLogger().info("DB ERROR: Failed to restore a decoy in '" + loc.getWorld().getName() + "'!");
plugin.getLogger().info("DB ERROR: Failed to restore a decoy in `" + loc.getWorld().getName() + "`!");
}
}
}
Expand Down
@@ -1,4 +1,4 @@
package Fishrock123.DecoyBlocks;
package com.fishrock123.decoyblocks;

import org.bukkit.Bukkit;
import org.bukkit.World;
Expand Down Expand Up @@ -74,7 +74,7 @@ public void onBlockPlace(BlockPlaceEvent e) {
for (DBLogEntry entry : database.Log) {
if (entry.getBlock().getLocation().equals(e.getBlock().getLocation())) {
i++;
p.sendMessage("(" + i + ") This decoy has logged " + entry.getOfflinePlayer().getName() + " at " + entry.getTimestamp());
p.sendMessage('(' + i + ") This decoy has logged " + entry.getOfflinePlayer().getName() + " at " + entry.getTimestamp());
}
}

Expand Down

0 comments on commit 2debab0

Please sign in to comment.