Revamp superadmin list.

TODO: Auto-add.
This commit is contained in:
Steven Lawson
2011-10-30 15:27:06 -04:00
parent 342ece9934
commit 5f9626921d
4 changed files with 144 additions and 54 deletions

View File

@ -290,16 +290,18 @@ public class TFM_Util
{
tfm.superadmin_ips.add(user_ip);
try
{
FileConfiguration sa_config = YamlConfiguration.loadConfiguration(new File(tfm.getDataFolder(), TotalFreedomMod.SUPERADMIN_FILE));
sa_config.set("superadmin_ips", tfm.superadmin_ips);
sa_config.save(new File(tfm.getDataFolder(), TotalFreedomMod.SUPERADMIN_FILE));
}
catch (IOException ex)
{
Logger.getLogger(TFM_Util.class.getName()).log(Level.SEVERE, null, ex);
}
log.severe("TODO: Implement add to superadmin list.");
// try
// {
// FileConfiguration sa_config = YamlConfiguration.loadConfiguration(new File(tfm.getDataFolder(), TotalFreedomMod.SUPERADMIN_FILE));
// sa_config.set("superadmin_ips", tfm.superadmin_ips);
// sa_config.save(new File(tfm.getDataFolder(), TotalFreedomMod.SUPERADMIN_FILE));
// }
// catch (IOException ex)
// {
// Logger.getLogger(TFM_Util.class.getName()).log(Level.SEVERE, null, ex);
// }
}
return match_found;