throws FileNotFoundException {
this.server = server;
PluginManager pm = server.getPluginManager();
Permissions perms;
try {
perms = (Permissions)pm.getPlugin("Permissions");
if (perms == null) {
throw new FileNotFoundException("Permissions plugin doesn't " +
"exist on this server. Please make sure Permissions " +
"exists in the plugins directory");
}
// make sure Permissions gets enabled first
if(!perms.isEnabled())
server.getPluginManager().enablePlugin(perms);
}
catch (ClassCastException e) {
throw new FileNotFoundException("Permisisons plugins isn't type " +
"com.nijikokun.bukkit.Permissions.Permissions");
}
handler = perms.getHandler();
source = new WritableConfiguration(new File(perms.getDataFolder(),
FILENAME));
reloadSource();
}