From 45bd4ac8c1d8ff8ff24ffb50a25684aedd63eabb Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Fri, 30 May 2014 14:28:04 -0500 Subject: [PATCH] Reference the plugin and not Bukkit --- src/main/java/com/graywolf336/jail/beans/Jail.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/graywolf336/jail/beans/Jail.java b/src/main/java/com/graywolf336/jail/beans/Jail.java index 487071f..8870d10 100644 --- a/src/main/java/com/graywolf336/jail/beans/Jail.java +++ b/src/main/java/com/graywolf336/jail/beans/Jail.java @@ -4,7 +4,6 @@ import java.util.HashMap; import java.util.HashSet; import java.util.UUID; -import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.block.Sign; @@ -70,7 +69,7 @@ public class Jail { /** Gets the minimum point as a Bukkit Location class. */ public Location getMinPoint() { - return new Location(Bukkit.getServer().getWorld(world), minX, minY, minZ); + return new Location(plugin.getServer().getWorld(world), minX, minY, minZ); } /** Sets the location of the maximum point to the given location's coordinates. */ @@ -84,7 +83,7 @@ public class Jail { /** Gets the minimum point as a Bukkit Location class. */ public Location getMaxPoint() { - return new Location(Bukkit.getServer().getWorld(world), maxX, maxY, maxZ); + return new Location(plugin.getServer().getWorld(world), maxX, maxY, maxZ); } /** Accepts an array of ints as the coord, where 0 = x, 1 = y, 2 = z. */