Skip to content

Commit

Permalink
Fixed banned players blocking the server by trying to join
Browse files Browse the repository at this point in the history
  • Loading branch information
freundTech committed Apr 13, 2019
1 parent 395d63b commit a94b010
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ class PlayerListener(private val plugin: OneSlotServer) : Listener {
event.disallow(Result.KICK_FULL,
"A person is already playing. Please wait ${waitLeft.format()}.")
}
} else {
}
if (event.result == Result.ALLOWED) {
plugin.activePlayer = event.player
event.player.loadFromSharedData()

}
}

Expand Down

0 comments on commit a94b010

Please sign in to comment.