Esempio n. 1
0
 public static boolean isExpired(Plot plot) {
   for (UUID owner : PlotHandler.getOwners(plot)) {
     if (!isExpired(owner)) {
       return false;
     }
   }
   return true;
 }
Esempio n. 2
0
 @Override
 public boolean canModify(Plot plot, PlotPlayer player) {
   if (plot == null) {
     return Permissions.hasPermission(player, "plots.inbox.modify." + toString());
   }
   return (Permissions.hasPermission(player, "plots.inbox.modify." + toString())
       && (PlotHandler.isOwner(plot, player.getUUID())
           || Permissions.hasPermission(player, "plots.inbox.modify." + toString() + ".other")));
 }