mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-15 08:28:10 +02:00
Remove unused method (dependency on ConfigManager).
This commit is contained in:
parent
3cc5aef282
commit
e454930569
@ -20,8 +20,6 @@ import fr.neatmonster.nocheatplus.compat.cb3026.MCAccessCB3026;
|
|||||||
import fr.neatmonster.nocheatplus.compat.cb3043.MCAccessCB3043;
|
import fr.neatmonster.nocheatplus.compat.cb3043.MCAccessCB3043;
|
||||||
import fr.neatmonster.nocheatplus.compat.cb3100.MCAccessCB3100;
|
import fr.neatmonster.nocheatplus.compat.cb3100.MCAccessCB3100;
|
||||||
import fr.neatmonster.nocheatplus.compat.glowstone.MCAccessGlowstone;
|
import fr.neatmonster.nocheatplus.compat.glowstone.MCAccessGlowstone;
|
||||||
import fr.neatmonster.nocheatplus.config.ConfPaths;
|
|
||||||
import fr.neatmonster.nocheatplus.config.ConfigManager;
|
|
||||||
import fr.neatmonster.nocheatplus.logging.StaticLog;
|
import fr.neatmonster.nocheatplus.logging.StaticLog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -36,15 +34,6 @@ public class MCAccessFactory {
|
|||||||
"[NoCheatPlus] Development builds (unsupported by the Bukkit Staff, at your own risk): http://ci.md-5.net/job/NoCheatPlus/changes",
|
"[NoCheatPlus] Development builds (unsupported by the Bukkit Staff, at your own risk): http://ci.md-5.net/job/NoCheatPlus/changes",
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a new MCAccess instance using the config value for ConfPaths.COMPATIBILITY_BUKKITONLY.
|
|
||||||
* @return MCAccess instance.
|
|
||||||
* @throws RuntimeException if no access can be set.
|
|
||||||
*/
|
|
||||||
public MCAccess getMCAccess() {
|
|
||||||
return getMCAccess(ConfigManager.getConfigFile().getBoolean(ConfPaths.COMPATIBILITY_BUKKITONLY));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a new MCAccess instance.
|
* Get a new MCAccess instance.
|
||||||
* @param bukkitOnly Set to true to force using an API-only module.
|
* @param bukkitOnly Set to true to force using an API-only module.
|
||||||
|
Loading…
Reference in New Issue
Block a user