Now you can't set "respawnworld" to invalid values.

This commit is contained in:
main() 2011-12-31 17:40:10 +01:00
parent 659301a808
commit 76629ebd25

View File

@ -701,6 +701,7 @@ public class MVWorld implements MultiverseWorld {
*/
@Override
public boolean setRespawnToWorld(String respawnToWorld) {
if (!this.plugin.getMVWorldManager().isMVWorld(respawnToWorld)) return false;
return this.setKnownProperty("respawn", respawnToWorld, null);
}