예제 #1
0
 public static boolean isPlotWorld(final BlockState b) {
   if (b == null) {
     return false;
   } else {
     return AthionPlots.AthionMaps.containsKey(b.getWorld().getName().toLowerCase());
   }
 }
예제 #2
0
 public static boolean isPlotWorld(final Player p) {
   if (p == null) {
     return false;
   } else {
     return AthionPlots.AthionMaps.containsKey(p.getWorld().getName().toLowerCase());
   }
 }
예제 #3
0
 public static boolean isPlotWorld(final World w) {
   if (w == null) {
     return false;
   } else {
     return AthionPlots.AthionMaps.containsKey(w.getName().toLowerCase());
   }
 }
예제 #4
0
  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;
    }
  }
예제 #5
0
  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;
      }
    }
  }
예제 #6
0
 public static boolean isPlotWorld(final String name) {
   return AthionPlots.AthionMaps.containsKey(name.toLowerCase());
 }