diff --git a/config.yml b/config.yml index 958b2f01c..76772fa77 100644 --- a/config.yml +++ b/config.yml @@ -301,7 +301,7 @@ general: # Villager limit - this is per team player, so an island of 4 will have 4x this number # Note that 10 villagers minimum are required to create an iron farm. Zero is unlimited. - villagerlimit: 11 + villagerlimit: 0 # Hopper limit - max number of island hoppers. If exceeded, players will not be able # to place a hopper block. Zero is unlimited. Excessive hoppers can add to lag. diff --git a/src/com/wasteofplastic/askyblock/GridManager.java b/src/com/wasteofplastic/askyblock/GridManager.java index 34aff68f6..3eca8574e 100644 --- a/src/com/wasteofplastic/askyblock/GridManager.java +++ b/src/com/wasteofplastic/askyblock/GridManager.java @@ -849,7 +849,7 @@ public Location getSafeHomeLocation(final UUID p, int number) { } } - plugin.getLogger().info("DEBUG: Home location either isn't safe, or does not exist so try the island"); + //plugin.getLogger().info("DEBUG: Home location either isn't safe, or does not exist so try the island"); // Home location either isn't safe, or does not exist so try the island // location if (plugin.getPlayers().inTeam(p)) { @@ -1018,7 +1018,7 @@ public boolean homeTeleport(final Player player, int number) { new SafeSpotTeleport(plugin, player, plugin.getPlayers().getHomeLocation(player.getUniqueId(), number), number); return true; } - plugin.getLogger().info("DEBUG: home loc = " + home); + //plugin.getLogger().info("DEBUG: home loc = " + home); player.teleport(home); //player.sendBlockChange(home, Material.GLOWSTONE, (byte)0); if (number ==1 ) { diff --git a/src/com/wasteofplastic/askyblock/listeners/IslandGuard.java b/src/com/wasteofplastic/askyblock/listeners/IslandGuard.java index b80047e1c..a610bad4b 100644 --- a/src/com/wasteofplastic/askyblock/listeners/IslandGuard.java +++ b/src/com/wasteofplastic/askyblock/listeners/IslandGuard.java @@ -464,12 +464,15 @@ public void onVillagerSpawn(final CreatureSpawnEvent e) { return; } int limit = Settings.villagerLimit * Math.max(1,plugin.getPlayers().getMembers(island.getOwner()).size()); - plugin.getLogger().info("DEBUG: villager limit = " + limit); - long time = System.nanoTime(); + //plugin.getLogger().info("DEBUG: villager limit = " + limit); + //long time = System.nanoTime(); int pop = island.getPopulation(); - plugin.getLogger().info("DEBUG: time = " + ((System.nanoTime() - time)*0.000000001)); + //plugin.getLogger().info("DEBUG: time = " + ((System.nanoTime() - time)*0.000000001)); if (pop >= limit) { - plugin.getLogger().info("DEBUG: stopped a villager spawning!"); + plugin.getLogger().warning( + "Island at " + island.getCenter().getBlockX() + "," + island.getCenter().getBlockZ() + " hit the island villager limit of " + + limit); + //plugin.getLogger().info("Stopped villager spawning on island " + island.getCenter()); // Get all players in the area List players = e.getEntity().getNearbyEntities(10,10,10); for (Entity player: players) {