Fix bedrespawn not being checked. Fixes #240

This commit is contained in:
Eric Stokes 2011-11-26 13:01:45 -07:00
parent 6afbd1d13d
commit f2a65b4fd9
2 changed files with 1 additions and 3 deletions

View File

@ -354,7 +354,6 @@ public class MVWorld implements MultiverseWorld {
* This method should only be used from inside this class when it is KNOWN that the property exists.
*
* @param name The known name of a property
*
* @return The property object.
*/
private MVConfigProperty getKnownProperty(String name) {
@ -373,7 +372,6 @@ public class MVWorld implements MultiverseWorld {
* @param name The known name of a property.
* @param value The value that is trying to be set.
* @param sender The person sending the command, MAY BE NULL.
*
* @return True if the property was saved, false if not.
*/
private boolean setKnownProperty(String name, String value, CommandSender sender) {

View File

@ -63,7 +63,7 @@ public class MVPlayerListener extends PlayerListener {
return;
}
if (mvWorld.getBedRespawn()) {
if (mvWorld.getBedRespawn() && event.isBedSpawn()) {
this.plugin.log(Level.FINE, "Spawning " + event.getPlayer().getName() + " at their bed");
return;
}