Releases: InsightsPlugin/Insights
Releases · InsightsPlugin/Insights
Release v2.7.5
Release v2.5.0
- Added API
Example class:
package net.frankheijden.insights;
import net.frankheijden.insights.api.InsightsAPI;
import net.frankheijden.insights.api.entities.ChunkLocation;
import org.bukkit.Bukkit;
import org.bukkit.Chunk;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.entity.EntityType;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.*;
import java.util.concurrent.CompletableFuture;
public class MyClass extends JavaPlugin {
InsightsAPI insightsAPI;
@Override
public void onEnable() {
super.onEnable();
// Create a new InsightsAPI instance
insightsAPI = new InsightsAPI();
// Get a world to scan in
World world = Bukkit.getWorld("world");
// Get some chunklocations together
List<ChunkLocation> chunkLocations = new ArrayList<>();
for (Chunk chunk : world.getLoadedChunks()) {
ChunkLocation chunkLocation = new ChunkLocation(chunk.getX(), chunk.getZ());
chunkLocations.add(chunkLocation);
}
// Lets scan for ores!
List<Material> materials = Arrays.asList(
Material.COAL_ORE,
Material.IRON_ORE,
Material.LAPIS_ORE,
Material.REDSTONE_ORE,
Material.EMERALD_ORE,
Material.DIAMOND_ORE
);
// Lets also scan for Creepers ;-)
List<EntityType> entityTypes = Collections.singletonList(EntityType.CREEPER);
// Let the scan begin!
CompletableFuture<TreeMap<String, Integer>> completableFuture = insightsAPI.scan(world, chunkLocations, materials, entityTypes);
// When the scan has been completed, execute:
completableFuture.whenCompleteAsync((counts, error) -> {
// Print them in the console!
System.out.println(counts.toString());
});
}
}
Release v2.4.0
- Implemented PaperSpigot's Async chunk loading
- General chunk loading improvements
- Implemented a default scanradius tab-complete, closes #2
- Config checks are done on startup and on reload for performance purposes
- Implemented bossbar
- Added .gitignore file
Release v2.3.0
- Renamed plugin to Insights
- Renamed all permissions to 'insights'
- Renamed 'individual' to 'custom' subcommand
- Added custom scan to /scanworld
- Added ability to scan all entities/blocks in a chunk/radius/world
- Added support for multiple argument commands, e.g. /scanradius 5 custom DIAMOND_ORE CREEPER STONE
- Added new permissions for tabcompletion; 'insights.scan.tab', 'insights.scanradius.tab', 'insights.scanworld.tab'
Release v2.2.1
- Fixed scanradius underground
Release v2.2.0
- Added individual scanning
- Fixed %world% placeholder in /scanworld locale
Release v2.1.1
First release on GitHub