diff --git a/src/main/java/me/robomwm/claimslistclassifier/command/ClaimExpireCommand.java b/src/main/java/me/robomwm/claimslistclassifier/command/ClaimExpireCommand.java index 2cfbc31..d0202f1 100644 --- a/src/main/java/me/robomwm/claimslistclassifier/command/ClaimExpireCommand.java +++ b/src/main/java/me/robomwm/claimslistclassifier/command/ClaimExpireCommand.java @@ -157,7 +157,10 @@ private void onClaimExpire(ClaimExpirationEvent event) { //Cancel if the expiration time is greater than the current time (expiration is in the future) if (prolongedExpiration.getLong(event.getClaim().ownerID.toString()) > System.currentTimeMillis()) + { + plugin.getLogger().info("Prevented a claim owned by player UUID " + event.getClaim().ownerID.toString() + " from expiring."); event.setCancelled(true); + } else { OfflinePlayer player = plugin.getServer().getOfflinePlayer(event.getClaim().ownerID);