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 →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
26.2MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.9MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
4.7MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta