mirror of
https://github.com/NLthijs48/AreaShop.git
synced 2024-07-12 06:35:37 +02:00
Fix message using incorrect time unit
This commit is contained in:
parent
c489e6eba4
commit
1a2d755727
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user