From 2afae3a93f57c2a4b0b95cc1dc5f9a991f819b08 Mon Sep 17 00:00:00 2001 From: Driftay Date: Wed, 26 Sep 2018 22:38:51 -0400 Subject: [PATCH] Added Ability To Grab Chunk From world in Flocation --- src/main/java/com/massivecraft/factions/FLocation.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/FLocation.java b/src/main/java/com/massivecraft/factions/FLocation.java index d3f085ee..ab754be5 100644 --- a/src/main/java/com/massivecraft/factions/FLocation.java +++ b/src/main/java/com/massivecraft/factions/FLocation.java @@ -99,6 +99,10 @@ public class FLocation implements Serializable { return regionVal << 5; // "<< 5" == "* 32" } + public Chunk getChunk(){ + return Bukkit.getWorld(worldName).getChunkAt(x, z); + } + public static HashSet getArea(FLocation from, FLocation to) { HashSet ret = new HashSet<>();