Start working on the lang.yml feature

This commit is contained in:
gomeow
2013-03-08 12:05:43 -08:00
parent 93999a4517
commit 2f7c699b22
6 changed files with 25 additions and 29 deletions
@@ -3,7 +3,6 @@ package com.drtshock.playervaults.util;
import java.io.File;
import java.io.IOException;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
@@ -20,9 +19,6 @@ public class VaultManager {
public VaultManager(Main instance) {
this.plugin = instance;
}
String title = ChatColor.DARK_RED + "[" + ChatColor.WHITE + "PlayerVaults" +
ChatColor.DARK_RED + "]" + ChatColor.WHITE + ": ";
private final String directory = "plugins" + File.separator + "PlayerVaults" + File.separator + "vaults";
@@ -65,10 +61,10 @@ public class VaultManager {
FileConfiguration playerFile = YamlConfiguration.loadConfiguration(file);
if(file.exists()) {
playerFile.set("vault" + number, null);
sender.sendMessage(title + "Deleting " + ChatColor.GREEN + " " + number);
sender.sendMessage(Lang.TITLE.toString() + "Deleting " + ChatColor.GREEN + " " + number);
playerFile.save(file);
} else {
sender.sendMessage(title + " That doesn't exist!");
sender.sendMessage(Lang.TITLE.toString() + " That doesn't exist!");
}
}