Fix MvInfo's respawn world

This commit is contained in:
Eric Stokes 2011-08-07 16:42:50 -06:00
parent 818756d45b
commit 9b9bbb4091
2 changed files with 7 additions and 2 deletions

View File

@ -48,7 +48,6 @@
<source>${project.basedir}/lib/allpay/src</source>
<source>${project.basedir}/lib/commandhandler/src</source>
<source>${project.basedir}/lib/commandhandler/lib/ShellParser/src</source>
<source>${project.basedir}/lib/commandhandler/lib/JavaStructures/src</source>
</sources>
</configuration>
</execution>

View File

@ -100,7 +100,13 @@ public class InfoCommand extends MultiverseCommand {
}
if (world.getRespawnToWorld() != null) {
message.add(new FancyMessage("Players will respawn in: ", world.getColoredWorldString(), colors));
MVWorld respawn = this.plugin.getMVWorld(world.getRespawnToWorld());
if(respawn != null) {
message.add(new FancyMessage("Players will respawn in: ", respawn.getColoredWorldString(), colors));
} else {
message.add(new FancyMessage("Players will respawn in: ", ChatColor.RED + "!!INVALID!!", colors));
}
}
worldInfo.add(message);