From f2a389f8509f5556068a7a6bc81d8798238ac3a9 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Tue, 23 Sep 2014 19:12:06 +1000 Subject: [PATCH] Removed a non-multiworld API method --- .../com/intellectualcrafters/plot/api/PlotAPI.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/api/PlotAPI.java b/PlotSquared/src/com/intellectualcrafters/plot/api/PlotAPI.java index 61cf1c538..807c43cab 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/api/PlotAPI.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/api/PlotAPI.java @@ -34,8 +34,6 @@ public class PlotAPI { private JavaPlugin plugin; //To access plotMain stuffz. private PlotMain plotMain; - //To access the plotworld. - private World plotWorld; //Reference public static final String ADMIN_PERMISSION = "plots.admin"; @@ -205,7 +203,7 @@ public class PlotAPI { * @return plot bottom location */ public Location getHomeLocation(Plot p) { - return PlotHelper.getPlotHome(getPlotWorld(), p.id); + return PlotHelper.getPlotHome(p.getWorld(), p.id); } /** @@ -245,14 +243,6 @@ public class PlotAPI { MainCommand.subCommands.add(c); } - /** - * Get the plotworld object - * @return PlotWorld - */ - public World getPlotWorld() { - return this.plotWorld; - } - /** * Get the plotMain class * @return PlotMain Class