Removed debug.

This commit is contained in:
Tastybento 2018-02-20 14:16:40 -08:00
parent a3200265d4
commit 84f10d6790
4 changed files with 0 additions and 19 deletions

View File

@ -19,8 +19,6 @@ public class InvalidAddonFormatException extends AddonException {
public void printStackTrace(){
super.printStackTrace();
System.out.println("");
Bukkit.getLogger().log(Level.WARNING, " Basic format : (addon.yml)");
Bukkit.getLogger().log(Level.WARNING, " main: path.to.your.MainClass");
Bukkit.getLogger().log(Level.WARNING, " name: <NameOfYourModule>");

View File

@ -1,5 +0,0 @@
package us.tastybento.bskyblock.api.configuration;
public abstract class Conversion {
public abstract void convert();
}

View File

@ -4,8 +4,6 @@ import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import org.bukkit.Bukkit;
import us.tastybento.bskyblock.database.BSBDatabase;
import us.tastybento.bskyblock.database.flatfile.FlatFileDatabase;
import us.tastybento.bskyblock.database.managers.AbstractDatabaseHandler;
@ -25,8 +23,6 @@ public interface ISettings<T> {
// Get the handler
AbstractDatabaseHandler<T> settingsHandler = (AbstractDatabaseHandler<T>) new FlatFileDatabase().getHandler(getInstance().getClass());
// Load every field in the config class
Bukkit.getLogger().info("DEBUG: settingsHandler = " + settingsHandler);
Bukkit.getLogger().info("DEBUG: instance = " + getInstance());
settingsHandler.saveSettings(getInstance());
}

View File

@ -3,7 +3,6 @@
*/
package us.tastybento.bskyblock.listeners.flags;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
@ -130,23 +129,16 @@ public class FireListener extends AbstractFlagListener {
public boolean onTNTDamage(EntityChangeBlockEvent e) {
// Check world
if (!e.getBlock().getType().equals(Material.TNT) || !inWorld(e.getBlock().getLocation())) {
Bukkit.getLogger().info("DEBUG: " + e.getBlock().getType());
return false;
}
Bukkit.getLogger().info("DEBUG: in world");
// Stop TNT from being damaged if it is being caused by a visitor with a flaming arrow
if (e.getEntity() instanceof Projectile) {
Bukkit.getLogger().info("DEBUG: projectile");
Projectile projectile = (Projectile) e.getEntity();
// Find out who fired it
if (projectile.getShooter() instanceof Player && projectile.getFireTicks() > 0) {
Bukkit.getLogger().info("DEBUG: player fired a fire arrow");
Player shooter = (Player)projectile.getShooter();
setUser(User.getInstance(shooter));
Bukkit.getLogger().info("DEBUG: block loc = " + e.getBlock().getLocation());
Bukkit.getLogger().info("DEBUG: " + checkIsland(e, e.getBlock().getLocation(), Flag.BREAK_BLOCKS));
if (!setUser(User.getInstance(shooter)).checkIsland(e, e.getBlock().getLocation(), Flag.BREAK_BLOCKS)) {
Bukkit.getLogger().info("DEBUG: remove arrow");
// Remove the arrow
projectile.remove();
e.setCancelled(true);