Towny Classic

Towny Classic

3.2k Downloads

Suggestion: Town For Sale Time that can be called from API

Closed this issue ยท 0 comments

commented

Please explain your feature request to the best of your abilities:

For API purposes, it would be helpful to have a method like town.getForSaleTime() that returns the timestamp when the town was first set for sale.

Implementation Notes:

  • The timestamp should be recorded at the moment the town is marked for sale.
  • A corresponding setter method, e.g. town.setForSaleTime(System.currentTimeMillis()), could handle this.

Benefit:
This addition would make it straightforward to determine how long a town has been on the market through the API.