Add prettier "MV does not know about this" method. Now it will be consistent.

This commit is contained in:
Eric Stokes 2011-07-16 15:22:23 -06:00
parent 8792d3b4c3
commit 099bd9dbb6
2 changed files with 9 additions and 5 deletions

View File

@ -9,6 +9,7 @@ import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.ChatColor;
import org.bukkit.World;
import org.bukkit.World.Environment;
import org.bukkit.command.Command;
@ -79,8 +80,6 @@ public class MultiverseCore extends JavaPlugin {
// Setup our Debug Log
debugLog = new DebugLog("Multiverse-Core", getDataFolder() + File.separator + "debug.log");
}
public void onEnable() {
@ -111,7 +110,7 @@ public class MultiverseCore extends JavaPlugin {
// Setup & Load our Configuration files.
loadConfigs();
if (this.configMV != null) {
this.loadWorlds(true);
} else {
this.log(Level.WARNING, "Your configs were not loaded. Very little will function in MV.");
@ -589,4 +588,9 @@ public class MultiverseCore extends JavaPlugin {
}
return false;
}
public void showNotMVWorldMessage(CommandSender sender, String worldName) {
sender.sendMessage("Multiverse doesn't know about " + ChatColor.DARK_AQUA + worldName + ChatColor.WHITE + " yet.");
sender.sendMessage("Type " + ChatColor.DARK_AQUA + "/mv import ?" + ChatColor.WHITE + " for help!");
}
}

View File

@ -50,8 +50,8 @@ public class PurgeCommand extends Command {
}
if (!worldName.equalsIgnoreCase("all") && !((MultiverseCore) this.plugin).isMVWorld(worldName)) {
sender.sendMessage("Multiverse doesn't know about " + worldName);
sender.sendMessage("... so It cannot be purged");
((MultiverseCore)this.plugin).showNotMVWorldMessage(sender, worldName);
sender.sendMessage("It cannot be purged.");
return;
}