For the description of this plugin, please refer to SpigotMC: https://www.spigotmc.org/resources/56489/
- Make sure you have gradle installed.
- Run the project with
gradle shadowJarto compile it with dependencies.
An example of a scan can be found here.
- Main API: InsightsAPI
- Chunk scan API: Scanner, ScanOptions and ScanResult
- Easily get ChunkLocations / PartialChunks for scanning: ChunkUtils
- Easily check for tiles: TileUtils
- Easily get entity/block player is looking at: PlayerUtils
- Check for player move per chunk (cancellable): PlayerChunkMoveEvent
- Check when player places down (any) entity: PlayerEntityPlaceEvent
- Check when player removes (any) entity: PlayerEntityDestroyEvent
- Easily send ActionBar message: MessageUtils
- Everything is compatible from 1.8 - 1.15.2 (with some reflections)!
import net.frankheijden.insights.interfaces.Hook;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.plugin.Plugin;
public class MyInsightsHook extends Hook {
public MyInsightsHook(Plugin plugin) {
super(plugin);
}
@Override
public boolean shouldCancel(Block block) {
// Cancel Insights for all Dirt blocks
return block.getType() == Material.DIRT;
}
}import net.frankheijden.insights.api.InsightsAPI;
public class MyPlugin extends JavaPlugin {
@Override
public void onEnable() {
super.onEnable();
// Add hook
InsightsAPI.getHookManager().addHook(new MyInsightsHook(this));
}
}







