Just a simple update for the spigot api version 1.13-1.18
Original Plugin: https://www.spigotmc.org/resources/worldguard-region-events.28358/
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.
If you need any help just add me as a friend on Discord.
My Discord-Tag: NetzkroneHD
Old Discord-Tag: NetzkroneHD#6420
Original Plugin: https://www.spigotmc.org/resources/worldguard-region-events.28358/
Spoiler: Region Events Exempels
There is a more detailed project on GitHub if you need more details:
https://github.com/NetzkroneHD/WGRegionExample
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());
}
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());
}
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>
<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
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.13, 1.14, 1.15
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.