From edee5f217fe5d97d2f2294d2f19261433d67be96 Mon Sep 17 00:00:00 2001 From: Acrobot Date: Thu, 19 Apr 2012 15:53:15 +0200 Subject: [PATCH] Updated Towny --- com/Acrobot/ChestShop/Utils/uTowny.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/com/Acrobot/ChestShop/Utils/uTowny.java b/com/Acrobot/ChestShop/Utils/uTowny.java index 442142e..9445168 100644 --- a/com/Acrobot/ChestShop/Utils/uTowny.java +++ b/com/Acrobot/ChestShop/Utils/uTowny.java @@ -2,7 +2,7 @@ package com.Acrobot.ChestShop.Utils; import com.Acrobot.ChestShop.Config.Config; import com.Acrobot.ChestShop.Config.Property; -import com.palmergames.bukkit.towny.NotRegisteredException; +import com.palmergames.bukkit.towny.exceptions.NotRegisteredException; import com.palmergames.bukkit.towny.object.TownBlockType; import com.palmergames.bukkit.towny.object.TownyUniverse; import org.bukkit.Location; @@ -15,7 +15,7 @@ import org.bukkit.entity.Player; */ public class uTowny { public static boolean isInsideShopPlot(Location chestlocation, Location signLocation) { - return uSign.towny.getTownyUniverse().getTownBlock(chestlocation).getType() == TownBlockType.COMMERCIAL && uSign.towny.getTownyUniverse().getTownBlock(signLocation).getType() == TownBlockType.COMMERCIAL; + return TownyUniverse.getTownBlock(chestlocation).getType() == TownBlockType.COMMERCIAL && TownyUniverse.getTownBlock(signLocation).getType() == TownBlockType.COMMERCIAL; } public static boolean isPlotOwner(Player player, Location chestLocation, Location signLocation) { @@ -28,7 +28,7 @@ public class uTowny { } private static boolean isInWilderness(Block block) { - return uSign.towny.getTownyUniverse().isWilderness(block); + return TownyUniverse.isWilderness(block); } public static boolean canBuild(Player player, Location chestLocation, Location signLocation) { @@ -37,7 +37,7 @@ public class uTowny { private static boolean isBlockOwner(Player player, Location location) { try { - return uSign.towny.getTownyUniverse().getTownBlock(location).isOwner(TownyUniverse.getDataSource().getResident(player.getName())); + return TownyUniverse.getTownBlock(location).isOwner(TownyUniverse.getDataSource().getResident(player.getName())); } catch (NotRegisteredException ex) { return false; } @@ -45,7 +45,7 @@ public class uTowny { private static boolean isResident(Player p, Location l) { try { - return uSign.towny.getTownyUniverse().getTownBlock(l).getTown().hasResident(p.getName()); + return TownyUniverse.getTownBlock(l).getTown().hasResident(p.getName()); } catch (NotRegisteredException ex) { return false; }