Fix message using incorrect time unit

This commit is contained in:
Thijs Wiefferink 2015-06-11 15:42:39 +02:00
parent c489e6eba4
commit 1a2d755727
2 changed files with 1 additions and 3 deletions

View File

@ -1125,7 +1125,6 @@ public abstract class GeneralRegion implements GeneralRegionInterface {
* Indicate this region needs to be saved, saving will happen by a repeating task
*/
public void saveRequired() {
AreaShop.debug("saveRequired()");
saveRequired = true;
}

View File

@ -461,8 +461,7 @@ public class RentRegion extends GeneralRegion {
if((timeRented + getDuration()) > (maxRentTime)
&& !player.hasPermission("areashop.renttimebypass")
&& maxRentTime != -1) {
int timeRentedMinutes = (int)(timeRented/1000.0/60.0 +1);
plugin.message(player, "rent-maxRentTime", this.millisToHumanFormat(maxRentTime), this.millisToHumanFormat(timeRentedMinutes));
plugin.message(player, "rent-maxRentTime", this.millisToHumanFormat(maxRentTime), this.millisToHumanFormat(timeRented));
return false;
}