Do not teleport unregistered player if registration is optional

This commit is contained in:
ljacqu
2016-06-12 12:48:32 +02:00
parent 68d5145cd7
commit 3cdec91255
@@ -154,13 +154,13 @@ public class AsynchronousJoin implements AsynchronousProcess {
// Groups logic
Utils.setGroup(player, GroupType.UNREGISTERED);
teleportationService.teleportOnJoin(player);
// Skip if registration is optional
if (!service.getProperty(RegistrationSettings.FORCE)) {
return;
}
teleportationService.teleportOnJoin(player);
}
// The user is not logged in