Skip to content

Commit

Permalink
print a message when we prevented a delayed claim from expiring
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboMWM committed Sep 22, 2018
1 parent d48d340 commit f5f25e3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f5f25e3

Please sign in to comment.