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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user