From f2a65b4fd989be146437e73c2b056677200f09d6 Mon Sep 17 00:00:00 2001 From: Eric Stokes Date: Sat, 26 Nov 2011 13:01:45 -0700 Subject: [PATCH] Fix bedrespawn not being checked. Fixes #240 --- src/main/java/com/onarandombox/MultiverseCore/MVWorld.java | 2 -- .../onarandombox/MultiverseCore/listeners/MVPlayerListener.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java b/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java index de20dfd1..ce8752a0 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java +++ b/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java @@ -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) { diff --git a/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java b/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java index bd6a47db..6fa47bfc 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java +++ b/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java @@ -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; }