Updated readme, Fixed admin bypass command and corresponding permissions, Swapped colors for ally and truce, added new faction permissions, improved explosion protection and implemented firespread protection, fixed painbuild check order, flags can only be changed by server admins now and implemented type adapters for some enumerations for future changes to be non breaking. That it \:D /
This commit is contained in:
@ -10,6 +10,8 @@ import java.util.Map.Entry;
|
||||
import java.util.TreeMap;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.block.Block;
|
||||
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import com.massivecraft.factions.iface.RelationParticipator;
|
||||
@ -39,6 +41,14 @@ public class Board
|
||||
{
|
||||
return Factions.i.get(getIdAt(flocation));
|
||||
}
|
||||
public static Faction getFactionAt(Location location)
|
||||
{
|
||||
return getFactionAt(new FLocation(location));
|
||||
}
|
||||
public static Faction getFactionAt(Block block)
|
||||
{
|
||||
return getFactionAt(new FLocation(block));
|
||||
}
|
||||
|
||||
public static void setIdAt(String id, FLocation flocation)
|
||||
{
|
||||
|
Reference in New Issue
Block a user