mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-04 18:02:36 +01:00
Add prettier "MV does not know about this" method. Now it will be consistent.
This commit is contained in:
parent
8792d3b4c3
commit
099bd9dbb6
@ -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!");
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user