Skip to content

bergerhealer/BKCommonLib-RegionChangeTracker

Repository files navigation

BKCommonLib Region Change Tracker

Module included with BKCommonLib that tracks large-scale block changes in other plugins like WorldEdit.

Maven Dependency

<repositories>
    <repository>
        <id>mg-dev repo</id>
        <url>https://ci.mg-dev.eu/plugin/repository/everything</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>com.bergerkiller.bukkit.regionchangetracker</groupId>
        <artifactId>BKCommonLib-RegionChangeTracker-Core</artifactId>
        <version>1.0</version>
        <optional>true</optional>
    </dependency>
</dependencies>

Include com.bergerkiller.bukkit.regionchangetracker in the maven shade plugin to shade it in

Soft Depend

softdepend: [WorldEdit]

Example Plugin

public class MyPlugin extends JavaPlugin {
    private final RegionChangeTracker regionChangeTracker = new RegionChangeTracker(this) {
        @Override
        public void notifyChanges(World world, Collection<RegionBlockChangeChunkCoordinate> chunks) {
            // Called when there are changes done using WorldEdit/FAWE/etc.
        }
    };

    @Override
    public void onEnable() {
        regionChangeTracker.enable();
    }

    @Override
    public void disable() {
        regionChangeTracker.disable();
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages