mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
IConfExternal is abstract class for other jars, because the interface is not accessible.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1417 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
07e49c3fbb
commit
a2ed8ea52a
2 changed files with 10 additions and 1 deletions
|
@ -0,0 +1,8 @@
|
|||
package com.earth2me.essentials;
|
||||
|
||||
|
||||
public abstract class IConfExternal implements IConf
|
||||
{
|
||||
|
||||
public abstract void reloadConfig();
|
||||
}
|
|
@ -2,6 +2,7 @@ package com.earth2me.essentials.protect;
|
|||
|
||||
import com.earth2me.essentials.Essentials;
|
||||
import com.earth2me.essentials.IConf;
|
||||
import com.earth2me.essentials.IConfExternal;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.Util;
|
||||
import java.util.ArrayList;
|
||||
|
@ -77,7 +78,7 @@ public class EssentialsProtect extends JavaPlugin
|
|||
pm.registerEvent(Type.PLUGIN_ENABLE, serverListener, Priority.Highest, this);
|
||||
|
||||
reloadConfig();
|
||||
Essentials.getStatic().addReloadListener(new IConf() {
|
||||
Essentials.getStatic().addReloadListener(new IConfExternal() {
|
||||
|
||||
public void reloadConfig()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue