Preparing for a bugfix release. Also made sure mcMMO saves info on

shutdown.
This commit is contained in:
nossr50
2012-02-11 10:21:36 -08:00
parent 3d60c057ea
commit 70756c2a2e
5 changed files with 26 additions and 26 deletions

View File

@@ -166,17 +166,6 @@ public class mcMMO extends JavaPlugin
FileManager FM = SpoutManager.getFileManager();
FM.addToPreLoginCache(this, SpoutStuff.getFiles());
/*
Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this,
new Runnable() {
@Override
public void run() {
mmoHelper.updateAll();
}
}, 20, 20);
*/
}
}
@@ -239,9 +228,17 @@ public class mcMMO extends JavaPlugin
return PP.inParty();
}
public void onDisable() {
Bukkit.getServer().getScheduler().cancelTasks(this);
System.out.println("mcMMO was disabled.");
public void onDisable()
{
//Make sure to save player information if the server shuts down
for(Player x : Bukkit.getServer().getOnlinePlayers())
{
Users.getProfile(x).save();
}
Bukkit.getServer().getScheduler().cancelTasks(this); //This removes our tasks
System.out.println("mcMMO was disabled."); //How informative!
}
private void registerCommands() {