This API adds an Event which is called when a player edits a Command block.
Examples
Code (Java):
@EventHandler
public void onCommandBlockEdit(CommandBlockEditEvent event) {
Player player = event.getPlayer(); //Player editing the CommandBlock
String command = event.getCommand(); //Command of the CommandBlock
String name = event.getName(); //Name of the CommandBlock
boolean hasFeedback = event.hasFeedback(); //true if a feedback message is shown
String feedback = event.getFeedbackMessage(); //Feedback message
Location location = event.getLocation(); //Location of the CommandBlock
}
Depends on PacketListenerAPI
Maven
LinksCode (Text):<repositories>
<repository>
<id>inventive-repo</id>
<url>https://repo.inventivetalent.org/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.inventivetalent</groupId>
<artifactId>commandblockevents</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
Please leave a rating if you like this resource.
Donations to support me or this resource are also very much appreciated.

[API] CommandBlockEvents 1.0.1
Events called when CommandBlocks are edited