1
0
mirror of https://e.coding.net/circlecloud/Residence.git synced 2025-11-24 21:46:16 +00:00

remove static class...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-09-24 18:11:35 +08:00
parent 6b0f5ac789
commit 1cffbc7687
48 changed files with 4273 additions and 5120 deletions

View File

@@ -3,10 +3,17 @@ package com.bekvon.bukkit.residence.runnable;
import com.bekvon.bukkit.residence.Residence;
public class RentTask implements Runnable {
Residence plugin;
public RentTask(final Residence plugin) {
this.plugin = plugin;
}
@Override
public void run() {
Residence.getRentManager().checkCurrentRents();
if (Residence.getConfigManager().showIntervalMessages())
Residence.getLog().info(" - Rent Expirations checked!");
plugin.getRentManager().checkCurrentRents();
if (plugin.getConfigManager().showIntervalMessages()) {
plugin.getLog().info(" - Rent Expirations checked!");
}
}
}