mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-25 12:05:14 +01:00
Fix bedrespawn not being checked. Fixes #240
This commit is contained in:
parent
6afbd1d13d
commit
f2a65b4fd9
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user