From c3c69a30dd262c0f5e8b7c8b6cecd650f8c895bc Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Thu, 31 Mar 2011 15:13:02 +0200 Subject: [PATCH] Warning fixes --- src/com/bukkit/mcteam/factions/Board.java | 3 ++- src/com/bukkit/mcteam/factions/commands/FCommandHome.java | 2 +- .../mcteam/factions/listeners/FactionsBlockListener.java | 3 --- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/com/bukkit/mcteam/factions/Board.java b/src/com/bukkit/mcteam/factions/Board.java index 2fbb5a4e..90ef9574 100644 --- a/src/com/bukkit/mcteam/factions/Board.java +++ b/src/com/bukkit/mcteam/factions/Board.java @@ -15,6 +15,7 @@ import org.bukkit.ChatColor; import com.bukkit.mcteam.factions.util.TextUtil; import com.bukkit.mcteam.gson.reflect.TypeToken; import com.bukkit.mcteam.gson.JsonArray; +import com.bukkit.mcteam.gson.JsonElement; import com.bukkit.mcteam.gson.JsonObject; import com.bukkit.mcteam.gson.JsonParser; import com.bukkit.mcteam.util.AsciiCompass; @@ -252,7 +253,7 @@ public class Board { JsonParser parser = new JsonParser(); JsonObject json = (JsonObject) parser.parse(DiscUtil.read(jsonFile)); JsonArray coords = json.getAsJsonArray("coordFactionIds"); - Iterator coordSet = coords.iterator(); + Iterator coordSet = coords.iterator(); while(coordSet.hasNext()) { JsonArray coordDat = (JsonArray) coordSet.next(); JsonObject coord = coordDat.get(0).getAsJsonObject(); diff --git a/src/com/bukkit/mcteam/factions/commands/FCommandHome.java b/src/com/bukkit/mcteam/factions/commands/FCommandHome.java index 3d1268f4..f04c8801 100644 --- a/src/com/bukkit/mcteam/factions/commands/FCommandHome.java +++ b/src/com/bukkit/mcteam/factions/commands/FCommandHome.java @@ -30,7 +30,7 @@ public class FCommandHome extends FBaseCommand { return; } - player.teleportTo(myFaction.getHome()); + player.teleport(myFaction.getHome()); } } diff --git a/src/com/bukkit/mcteam/factions/listeners/FactionsBlockListener.java b/src/com/bukkit/mcteam/factions/listeners/FactionsBlockListener.java index 4cfee8c4..2d16e5f4 100644 --- a/src/com/bukkit/mcteam/factions/listeners/FactionsBlockListener.java +++ b/src/com/bukkit/mcteam/factions/listeners/FactionsBlockListener.java @@ -1,6 +1,5 @@ package com.bukkit.mcteam.factions.listeners; -import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.event.block.BlockBreakEvent; @@ -9,12 +8,10 @@ import org.bukkit.event.block.BlockListener; import org.bukkit.event.block.BlockPlaceEvent; import com.bukkit.mcteam.factions.Board; -import com.bukkit.mcteam.factions.Conf; import com.bukkit.mcteam.factions.FLocation; import com.bukkit.mcteam.factions.FPlayer; import com.bukkit.mcteam.factions.Faction; import com.bukkit.mcteam.factions.Factions; -import com.bukkit.mcteam.factions.util.TextUtil; public class FactionsBlockListener extends BlockListener {