Skip to content

Commit

Permalink
fix: Removed allowed listener check
Browse files Browse the repository at this point in the history
Possibe fix for #1
  • Loading branch information
4drian3d committed Jun 20, 2022
1 parent c5abd8f commit 7f42edf
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ public KickListener(final KickRedirect plugin){

@Subscribe(order = PostOrder.EARLY)
public void onKickFromServer(final KickedFromServerEvent event, final Continuation continuation){
if(!event.getResult().isAllowed()){
continuation.resume();
cache(event, null, KickStep.NOT_ALLOWED);
return;
}

if (reasonCheck(event)) {
final RegisteredServer server = ServerUtils.getConfigServer(plugin);
Expand Down Expand Up @@ -109,9 +104,9 @@ void applyKickResult(KickedFromServerEvent event) {
}

public enum KickStep {
NOT_ALLOWED,
//NOT_ALLOWED,
NULL_SERVER,
AVAILABLE_SERVER,
DISALLOWED_REASON
DISALLOWED_REASON;
}
}

0 comments on commit 7f42edf

Please sign in to comment.