diff --git a/docs/articles/events/before-player-connect.md b/docs/articles/events/before-player-connect.md deleted file mode 100644 index 6ffece49..00000000 --- a/docs/articles/events/before-player-connect.md +++ /dev/null @@ -1,29 +0,0 @@ -# beforePlayerConnect - -## A General Overview - - You can find information about the types here. (click to redirect) - -This event is where servers can kick users before the actual connection. For example, if the player is banned. - -## Example - -```js -import alt from "alt-server"; - -alt.on('beforePlayerConnect', (connectionInfo) => { - alt.log(connectionInfo.branch); // Prints out the current branch. - alt.log(connectionInfo.authToken); // Prints out the authToken. - alt.log(connectionInfo.build); // Prints out the current build number. - alt.log(connectionInfo.cdnUrl); // Prints out the URL of the CDN. - alt.log(connectionInfo.hwidExHash); // Prints out the ExHash of the client's HWID. - alt.log(connectionInfo.hwidHash); // Prints out the Hash of the client's HWID. - alt.log(connectionInfo.isDebug); // Prints out whether the client is in debug mode. - alt.log(connectionInfo.passwordHash); // Prints out a hash of the password that was used to connect to the server. - alt.log(connectionInfo.socialID); // Prints out the social ID of the client. - - if(connectionInfo.passwordHash !== alt.hashServerPassword('myPassword')) { - return false; - } -}); -``` diff --git a/docs/articles/toc.yml b/docs/articles/toc.yml index adfa7716..a3392c46 100644 --- a/docs/articles/toc.yml +++ b/docs/articles/toc.yml @@ -11,9 +11,6 @@ href: import-assertions.md - name: Events href: events/index.md - items: - - name: beforePlayerConnect - href: events/before-player-connect.md - name: Player href: player/index.md items: