mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-05 10:10:08 +01:00
Do not teleport unregistered player if registration is optional
This commit is contained in:
parent
68d5145cd7
commit
3cdec91255
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user