Skip to content

Commit

Permalink
Fix on join and source queue triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Nov 13, 2022
1 parent 1cf8f6c commit 48764be
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ protected void onKick(PQKickedFromServerEvent event) {
protected void onPreConnect(PQServerPreConnectEvent event) {
PlayerWrapper player = event.getPlayer();

if (player.getCurrentServer().isPresent() && (!Config.ENABLE_SOURCE_SERVER || !isSourceToTarget(event))) {
if (Config.ENABLE_SOURCE_SERVER && !isSourceToTarget(event)) {
return;
}

if (!Config.ENABLE_SOURCE_SERVER && player.getCurrentServer().isPresent()) {
return;
}

Expand Down

0 comments on commit 48764be

Please sign in to comment.