HomeJavaModsWorldGuard Region Events (Updated)
WorldGuard Region Events (Updated)
Just a simple update for the spigot api version 1.13-1.18

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

Spoiler: Region Events Exempels
Code (Text):
@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.
Spoiler: Example
Code (Text):
    <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

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

WorldGuard Region Events (Updated) is a free Minecraft Java mod. Compatible with Minecraft 1.13, 1.14, 1.15, 1.16 and newer. Downloaded 5,452 times (via Spigot). Download it and open it directly in the game.

Explore more