Update to 1.5

* Fix some formatting
 * Fix lang.yml file not being used for all messages
 * Rename doSaveStuff to saveVault
This commit is contained in:
gomeow
2013-03-15 23:17:03 -07:00
parent 14aae62af8
commit 6ef89277cd
4 changed files with 23 additions and 22 deletions
@@ -61,10 +61,13 @@ public class VaultManager {
FileConfiguration playerFile = YamlConfiguration.loadConfiguration(file);
if(file.exists()) {
playerFile.set("vault" + number, null);
sender.sendMessage(Lang.TITLE.toString() + "Deleting " + ChatColor.GREEN + " " + number);
playerFile.save(file);
} else {
sender.sendMessage(Lang.TITLE.toString() + " That doesn't exist!");
}
if(sender.getName().equalsIgnoreCase(target)) {
sender.sendMessage(Lang.TITLE.toString() + Lang.DELETE_VAULT.toString().replace("%v", String.valueOf(number)));
}
else {
sender.sendMessage(Lang.TITLE.toString() + Lang.DELETE_OTHER_VAULT.toString().replace("%v", String.valueOf(number)).replace("%p", target));
}
}