public static boolean isPlotWorld(final BlockState b) { if (b == null) { return false; } else { return AthionPlots.AthionMaps.containsKey(b.getWorld().getName().toLowerCase()); } }
public static boolean isPlotWorld(final Player p) { if (p == null) { return false; } else { return AthionPlots.AthionMaps.containsKey(p.getWorld().getName().toLowerCase()); } }
public static boolean isPlotWorld(final World w) { if (w == null) { return false; } else { return AthionPlots.AthionMaps.containsKey(w.getName().toLowerCase()); } }
public static AthionMaps getMap(final String name) { final String worldname = name.toLowerCase(); if (AthionPlots.AthionMaps.containsKey(worldname)) { return AthionPlots.AthionMaps.get(worldname); } else { return null; } }
public static AthionMaps getMap(final Block b) { if (b == null) { return null; } else { final String worldname = b.getWorld().getName().toLowerCase(); if (AthionPlots.AthionMaps.containsKey(worldname)) { return AthionPlots.AthionMaps.get(worldname); } else { return null; } } }
public static boolean isPlotWorld(final String name) { return AthionPlots.AthionMaps.containsKey(name.toLowerCase()); }