mirror of
https://e.coding.net/circlecloud/Residence.git
synced 2025-11-24 21:46:16 +00:00
fix PermissionManager error...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
@@ -83,7 +83,9 @@ public class Residence extends JavaPlugin {
|
||||
public static float bukkitver;
|
||||
|
||||
public final static int saveVersion = 1;
|
||||
public final static String[] validLanguages = { "English", "Chinese" };
|
||||
public final static String[] validLanguages = { "English",
|
||||
"Chinese" };
|
||||
protected static Residence instance;
|
||||
protected ResidenceBlockListener blistener;
|
||||
protected ChatManager chatmanager;
|
||||
protected ConfigManager cmanager;
|
||||
@@ -113,6 +115,10 @@ public class Residence extends JavaPlugin {
|
||||
protected boolean useWorldEdit;
|
||||
protected WorldFlagManager wmanager;
|
||||
|
||||
public static Residence getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public ResidenceBlockListener getBlockListener() {
|
||||
return blistener;
|
||||
}
|
||||
@@ -428,7 +434,7 @@ public class Residence extends JavaPlugin {
|
||||
if (!this.isEnabled()) {
|
||||
return;
|
||||
}
|
||||
FlagPermissions.initValidFlags();
|
||||
FlagPermissions.initValidFlags(this);
|
||||
final Plugin wep = this.getServer().getPluginManager().getPlugin("WorldEdit");
|
||||
if (wep != null) {
|
||||
smanager = new WorldEditSelectionManager(this);
|
||||
@@ -492,9 +498,10 @@ public class Residence extends JavaPlugin {
|
||||
init = true;
|
||||
} catch (final Exception ex) {
|
||||
init = false;
|
||||
getServer().getPluginManager().disablePlugin(this);
|
||||
setEnabled(false);
|
||||
this.getLogger().warning(" - 初始化失败! 卸载插件! 请报告以下错误给作者,谢谢!");
|
||||
this.getLogger().warning("错误: " + ex);
|
||||
ex.printStackTrace();
|
||||
}
|
||||
new VersionChecker(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user