Sueta

WorldGuard Region Events (Updated)

1.7.4

WorldGuard Region Events Updated API

·Plugin

Just a simple update for the spigot api version 1.13-1.18

Original Plugin: https://www.spigotmc.org/resources/worldguard-region-events.28358/

Region Events Exempels
@EventHandler
    public void onRegionEnter(RegionEnterEvent e) {
        e.getPlayer().sendMessage("You are entering "+e.getRegion().getId());
 
    }
 
    @EventHandler
    public void onRegionEntered(RegionEnteredEvent e) {
        e.getPlayer().sendMessage("You entered "+e.getRegion().getId());
 
    }
 
    @EventHandler
    public void onRegionLeave(RegionLeaveEvent e) {
        e.getPlayer().sendMessage("You are leaving "+e.getRegion().getId());
 
    }
 
    @EventHandler
    public void onRegionLeft(RegionLeftEvent e) {
        e.getPlayer().sendMessage("You left "+e.getRegion().getId());
 
    }

There is a more detailed project on GitHub if you need more details: https://github.com/NetzkroneHD/WGRegionExample

If you want to add the API as a maven/gradle... dependency, please use https://jitpack.io/#NetzkroneHD/WGRegionEvents. It is very important to install the plugin on the server and to change the scope in the dependency to provided, otherwise it will not work.

Example
<repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.github.NetzkroneHD</groupId>
            <artifactId>WGRegionEvents</artifactId>
            <version>v1.7.3</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

If you need any help just add me as a friend on Discord.
My Discord-Tag: NetzkroneHD
Old Discord-Tag: NetzkroneHD#6420

Similar projects

Plugin →