Esempio n. 1
0
 public static World getFirstWorld() {
   if (AthionPlots.AthionMaps != null) {
     if (AthionPlots.AthionMaps.keySet() != null) {
       if (AthionPlots.AthionMaps.keySet().toArray().length > 0) {
         return Bukkit.getWorld((String) AthionPlots.AthionMaps.keySet().toArray()[0]);
       }
     }
   }
   return null;
 }
Esempio n. 2
0
 public static AthionPlot getFirstPlot(final UUID uuid) {
   if (AthionPlots.AthionMaps != null) {
     if (AthionPlots.AthionMaps.keySet() != null) {
       if (AthionPlots.AthionMaps.keySet().toArray().length > 0) {
         for (final String mapkey : AthionPlots.AthionMaps.keySet()) {
           for (final String id : AthionPlots.AthionMaps.get(mapkey).plots.keySet()) {
             if (AthionPlots.AthionMaps.get(mapkey).plots.get(id).ownerId.equals(uuid)) {
               return AthionPlots.AthionMaps.get(mapkey).plots.get(id);
             }
           }
         }
       }
     }
   }
   return null;
 }