1.7.4latestAdded 1.20 supportNov 30, 2023 · Fixed Citizens bug · Added 1.20 support1.7.2Bug fixes and version supportJun 26, 2022 - Fixed Citizens bug - Added 1.19 support1.7.1Bug fixesFeb 3, 2022 - Added Citizens as soft-dependent - Added additional !=null queries - Fixed when MoveEvent was already canceled by another plugin1.7fixed Citizens bugJan 28, 2022 fixed Citizens bug1.6Improved performance and better adaptation to the Java conventionsNov 27, 2021 The package name has changed from de.netzkronehd.wgregionevents to de.netzkronehd.wgregionevents . All the methods has stayed the same, it's just a backend update.1.4Fixed NullPointer at event.getFrom()Jan 26, 2021 I fixed a NullPointerException at the method event.getFrom()1.3Added update to EventsJan 25, 2021 There are 2 more methods in the Events: - Code (Text): event.getTo() - Code (Text): event.getFrom() I think that's self-explanatory1.2Added SimpleWorldGuardAPIDec 19, 2020 .SpoilerTarget">Spoiler: API Examples Code (Text): package de.netzkronehd.WGRegionEvents; import java.util.Map; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.plugin.java.JavaPlugin; import com.sk89q.worldguard.protection.ApplicableRegionSet; import com.sk89q.worldguard.protection.regions.ProtectedRegion; import de.netzkronehd.WGRegionEvents.api.SimpleWorldGuardAPI; public class Example extends JavaPlugin { private static Example instance; private SimpleWorldGuardAPI simpleWorldGuardApi; @Override public void onEnable() { instance = this; simpleWorldGuardApi = new SimpleWorldGuardAPI(); // Getting a region by id (unperformant) ProtectedRegion spawn = simpleWorldGuardApi.getRegion("spawn"); if (spawn != null) { spawn.getOwners().getUniqueIds(); } // Getting a region by id and world ProtectedRegion pvp = simpleWorldGuardApi.getRegion("pvp", Bukkit.getWorld("world")); if (pvp != null) { pvp.getFlags(); } // Getting all regions (unperformant) Map<String, ProtectedRegion> allRegions = simpleWorldGuardApi.getRegions(); ProtectedRegion spawn2 = allRegions.get("spawn2"); if (spawn2 != null) { spawn2.getType(); } // Getting all regions on a Location ApplicableRegionSet localRegions = simpleWorldGuardApi.getRegions(new Location(Bukkit.getWorld("world"), 102, 147, 2002)); for(ProtectedRegion rg : localRegions) { if(rg.getId().equalsIgnoreCase("spawn")) { } } // Getting all regions in a World Map<String, ProtectedRegion> worldRegions = simpleWorldGuardApi.getRegions(Bukkit.getWorld("world")); for(ProtectedRegion rg : worldRegions.values()) { rg.getId(); } } public SimpleWorldGuardAPI getSimpleWorldGuardApi() { return simpleWorldGuardApi; } public static Example getInstance() { return instance; } }1.0Nov 13, 2020 1.1Oct 11, 2018
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