mirror of
https://e.coding.net/circlecloud/Residence.git
synced 2025-11-24 21:46:16 +00:00
@@ -1,6 +1,5 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
* To change this template, choose Tools | Templates and open the template in the editor.
|
||||
*/
|
||||
package com.bekvon.bukkit.residence;
|
||||
|
||||
@@ -57,8 +56,8 @@ import com.bekvon.bukkit.residence.selection.WorldEditSelectionManager;
|
||||
import com.bekvon.bukkit.residence.text.Language;
|
||||
import com.bekvon.bukkit.residence.text.help.HelpEntry;
|
||||
import com.bekvon.bukkit.residence.text.help.InformationPager;
|
||||
import com.bekvon.bukkit.residence.utils.ZipLibrary;
|
||||
import com.bekvon.bukkit.residence.vaultinterface.ResidenceVaultAdapter;
|
||||
import com.bekvon.bukkit.residence.vaultinterface.ZipLibrary;
|
||||
import com.earth2me.essentials.Essentials;
|
||||
|
||||
/**
|
||||
@@ -68,34 +67,34 @@ import com.earth2me.essentials.Essentials;
|
||||
*/
|
||||
public class Residence extends JavaPlugin {
|
||||
|
||||
public static String bukkitver;
|
||||
protected static ResidenceManager rmanager;
|
||||
protected static SelectionManager smanager;
|
||||
protected static PermissionManager gmanager;
|
||||
protected static ConfigManager cmanager;
|
||||
protected static ResidenceBlockListener blistener;
|
||||
protected static ResidencePlayerListener plistener;
|
||||
protected static ResidenceEntityListener elistener;
|
||||
protected static TransactionManager tmanager;
|
||||
protected static PermissionListManager pmanager;
|
||||
protected static LeaseManager leasemanager;
|
||||
protected static WorldItemManager imanager;
|
||||
protected static WorldFlagManager wmanager;
|
||||
protected static RentManager rentmanager;
|
||||
protected static ChatManager chatmanager;
|
||||
protected static Server server;
|
||||
protected static HelpEntry helppages;
|
||||
protected static Language language;
|
||||
protected static EconomyInterface economy;
|
||||
public final static int saveVersion = 1;
|
||||
protected static File dataFolder;
|
||||
protected static int leaseBukkitId = -1;
|
||||
protected static int rentBukkitId = -1;
|
||||
protected static int healBukkitId = -1;
|
||||
protected static int autosaveBukkitId = -1;
|
||||
protected static boolean initsuccess = false;
|
||||
protected static List<String> resadminToggle;
|
||||
private final static String[] validLanguages = { "English", "Chinese" };
|
||||
public static String bukkitver;
|
||||
protected static ResidenceManager rmanager;
|
||||
protected static SelectionManager smanager;
|
||||
protected static PermissionManager gmanager;
|
||||
protected static ConfigManager cmanager;
|
||||
protected static ResidenceBlockListener blistener;
|
||||
protected static ResidencePlayerListener plistener;
|
||||
protected static ResidenceEntityListener elistener;
|
||||
protected static TransactionManager tmanager;
|
||||
protected static PermissionListManager pmanager;
|
||||
protected static LeaseManager leasemanager;
|
||||
protected static WorldItemManager imanager;
|
||||
protected static WorldFlagManager wmanager;
|
||||
protected static RentManager rentmanager;
|
||||
protected static ChatManager chatmanager;
|
||||
protected static Server server;
|
||||
protected static HelpEntry helppages;
|
||||
protected static Language language;
|
||||
protected static EconomyInterface economy;
|
||||
public final static int saveVersion = 1;
|
||||
protected static File dataFolder;
|
||||
protected static int leaseBukkitId = -1;
|
||||
protected static int rentBukkitId = -1;
|
||||
protected static int healBukkitId = -1;
|
||||
protected static int autosaveBukkitId = -1;
|
||||
protected static boolean initsuccess = false;
|
||||
protected static List<String> resadminToggle;
|
||||
private final static String[] validLanguages = { "English", "Chinese" };
|
||||
|
||||
public static ResidenceBlockListener getBlockListener() {
|
||||
return blistener;
|
||||
@@ -217,40 +216,38 @@ public class Residence extends JavaPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean firstenable = true;
|
||||
protected boolean firstenable = true;
|
||||
|
||||
protected Map<String, String> deleteConfirm;
|
||||
protected Map<String, String> deleteConfirm;
|
||||
|
||||
private Runnable doHeals = new Runnable() {
|
||||
private Runnable doHeals = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
plistener.doHeals();
|
||||
}
|
||||
};
|
||||
|
||||
private Runnable rentExpire = new Runnable() {
|
||||
private Runnable rentExpire = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
rentmanager.checkCurrentRents();
|
||||
if (cmanager.showIntervalMessages()) {
|
||||
System.out
|
||||
.println("[Residence] - Rent Expirations checked!");
|
||||
System.out.println("[Residence] - Rent Expirations checked!");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private Runnable leaseExpire = new Runnable() {
|
||||
private Runnable leaseExpire = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
leasemanager.doExpirations();
|
||||
if (cmanager.showIntervalMessages()) {
|
||||
System.out
|
||||
.println("[Residence] - Lease Expirations checked!");
|
||||
System.out.println("[Residence] - Lease Expirations checked!");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private Runnable autoSave = new Runnable() {
|
||||
private Runnable autoSave = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
@@ -258,9 +255,7 @@ public class Residence extends JavaPlugin {
|
||||
saveYml();
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger("Minecraft").log(
|
||||
Level.SEVERE,
|
||||
"[Residence] 插件数据 保存 错误", ex);
|
||||
Logger.getLogger("Minecraft").log(Level.SEVERE, "[Residence] 插件数据 保存 错误", ex);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user