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

View File

@ -154,13 +154,13 @@ public class AsynchronousJoin implements AsynchronousProcess {
// Groups logic // Groups logic
Utils.setGroup(player, GroupType.UNREGISTERED); Utils.setGroup(player, GroupType.UNREGISTERED);
teleportationService.teleportOnJoin(player);
// Skip if registration is optional // Skip if registration is optional
if (!service.getProperty(RegistrationSettings.FORCE)) { if (!service.getProperty(RegistrationSettings.FORCE)) {
return; return;
} }
teleportationService.teleportOnJoin(player);
} }
// The user is not logged in // The user is not logged in