mirror of
https://github.com/NLthijs48/AreaShop.git
synced 2024-11-16 15:25:11 +01:00
Remove lastActive from region file when unrented/sold
No problems if it is there, but just keeping the region file clean.
This commit is contained in:
parent
4d70571a23
commit
9c357fe929
@ -456,7 +456,8 @@ public class BuyRegion extends GeneralRegion {
|
||||
|
||||
/* Remove friends and the owner */
|
||||
clearFriends();
|
||||
setBuyer(null);
|
||||
setBuyer(null);
|
||||
removeLastActiveTime();
|
||||
|
||||
updateSigns();
|
||||
// Run commands
|
||||
|
@ -313,6 +313,10 @@ public abstract class GeneralRegion implements GeneralRegionInterface, Comparabl
|
||||
}
|
||||
}
|
||||
|
||||
public void removeLastActiveTime() {
|
||||
setSetting("general.lastActive", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the World of the region
|
||||
* @return The World where the region is located
|
||||
|
@ -608,6 +608,7 @@ public class RentRegion extends GeneralRegion {
|
||||
setRenter(null);
|
||||
setRentedUntil(null);
|
||||
setTimesExtended(-1);
|
||||
removeLastActiveTime();
|
||||
|
||||
updateSigns();
|
||||
// Run commands
|
||||
|
Loading…
Reference in New Issue
Block a user