Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/net/tfminecraft/dowsing/objects/NodeType.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.inventory.ItemStack;

import net.tfminecraft.dowsing.DowsingMain;
import net.tfminecraft.dowsing.loaders.SlotLoader;
import net.tfminecraft.dowsing.utils.ItemCreator;

Expand Down Expand Up @@ -126,7 +127,7 @@ public NodeType(String key, ConfigurationSection config) {
}
if(config.contains("biomes")) {
this.biomes = config.getStringList("biomes");
System.out.println(this.biomes);
DowsingMain.plugin.getLogger().info(this.biomes.toString());
}
}
public NodeType(NodeType another) {
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/net/tfminecraft/dowsing/utils/Database.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.List;
import java.util.TreeMap;
import java.util.UUID;
import java.util.logging.Level;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
Expand All @@ -27,6 +28,7 @@
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.tfminecraft.dowsing.DowsingMain;
import net.tfminecraft.dowsing.loaders.BlockLoader;
import net.tfminecraft.dowsing.loaders.PMLoader;
import net.tfminecraft.dowsing.loaders.TypeLoader;
Expand Down Expand Up @@ -59,8 +61,7 @@ public String getResource(Chunk c) throws IOException {
}
myReader.close();
} catch (FileNotFoundException e) {
System.out.println("An error occurred.");
e.printStackTrace();
DowsingMain.plugin.getLogger().log(Level.WARNING, "Could not read resource file " + file, e);
}
}
}
Expand All @@ -80,8 +81,7 @@ public Boolean hasResource(Chunk c) throws IOException {
return true;
}
} catch (FileNotFoundException e) {
System.out.println("An error occurred.");
e.printStackTrace();
DowsingMain.plugin.getLogger().log(Level.WARNING, "Could not read resource file " + file, e);
}
}
}
Expand Down Expand Up @@ -156,7 +156,7 @@ private void setSlots(NodeType t, List<String> pms) {
for(NodeSlot slot : t.getSlots()) {
if(slot.getId().equalsIgnoreCase(type)) {
slot.setActivePm(PMLoader.getByString(pm.split("\\.")[1]));
System.out.println(slot.getActivePm().getId());
DowsingMain.plugin.getLogger().info(slot.getActivePm().getId());
}
}
}
Expand Down