mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-12-01 15:04:09 +01:00
Fern's FAULT.
This commit is contained in:
parent
133810550f
commit
e792c338aa
@ -70,7 +70,7 @@ public class MVPlayerListener extends PlayerListener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(event.isBedSpawn() && this.plugin.getConfig().getBoolean("bedrespawn", true)) {
|
if (event.isBedSpawn() && this.plugin.getConfig().getBoolean("bedrespawn", true)) {
|
||||||
// Handle the Players GameMode setting for the new world.
|
// Handle the Players GameMode setting for the new world.
|
||||||
if (this.plugin.getConfig().getBoolean("enforcegamemodes", true)) {
|
if (this.plugin.getConfig().getBoolean("enforcegamemodes", true)) {
|
||||||
this.handleGameMode(event.getPlayer(), event.getRespawnLocation().getWorld());
|
this.handleGameMode(event.getPlayer(), event.getRespawnLocation().getWorld());
|
||||||
@ -157,7 +157,9 @@ public class MVPlayerListener extends PlayerListener {
|
|||||||
// Only check payments if it's a different world:
|
// Only check payments if it's a different world:
|
||||||
if (!event.getTo().getWorld().equals(event.getFrom().getWorld())) {
|
if (!event.getTo().getWorld().equals(event.getFrom().getWorld())) {
|
||||||
// Handle the Players GameMode setting for the new world.
|
// Handle the Players GameMode setting for the new world.
|
||||||
this.handleGameMode(event.getPlayer(), toWorld);
|
if (this.plugin.getConfig().getBoolean("enforcegamemodes", true)) {
|
||||||
|
this.handleGameMode(event.getPlayer(), toWorld);
|
||||||
|
}
|
||||||
|
|
||||||
// If the player does not have to pay, return now.
|
// If the player does not have to pay, return now.
|
||||||
if (toWorld.isExempt(event.getPlayer())) {
|
if (toWorld.isExempt(event.getPlayer())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user