Skip to content

rugiaDev/MultiBreak

 
 

Repository files navigation

MultiBreak Spigot Plugin

Maven:

<repository>
	<id>jitpack.io</id>
	<url>https://jitpack.io</url>
</repository>
<dependency>
	<groupId>com.github.vermulst</groupId>
	<artifactId>MultiBreak</artifactId>
	<version>version</version>
</dependency>

Gradle:

repositories {
	maven {
		url = 'https://jitpack.io'
	}
}
dependencies {
	compileOnly 'com.github.vermulst:MultiBreak:version'
}

Example use:

@EventHandler
public void multiBreakStart(MultiBreakStartEvent e) {
	FigureCircle figureCircle = new FigureCircle(10, 10, 3);
	e.setFigure(figureCircle);
	ArrayList<Block> blocks = e.getBlocks(); // get all of the blocks within the elipsoid
}

@EventHandler
public void multiBreakEnd(MultiBreakEndEvent e) {
	Player p = e.getPlayer();
	if (e.isSuccessful()) {
		p.sendMessage("Successfully broke multiple blocks");
	} else {
		p.sendMessage("Aborted breaking multiple blocks");
	}
	ArrayList<Block> blocks = e.getBlocks(); // get all of the blocks within the multibreak
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%