Merge branch 'master' of https://github.com/oloflarsson/Factions
This commit is contained in:
commit
2ec8437c35
@ -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<JsonElement> coordSet = coords.iterator();
|
||||
while(coordSet.hasNext()) {
|
||||
JsonArray coordDat = (JsonArray) coordSet.next();
|
||||
JsonObject coord = coordDat.get(0).getAsJsonObject();
|
||||
|
@ -30,7 +30,7 @@ public class FCommandHome extends FBaseCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
player.teleportTo(myFaction.getHome());
|
||||
player.teleport(myFaction.getHome());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user