hypixelban
A lightweight package that gets information about the unofficial hypixel ban api.
Installing
npm install hypixelban
Usage
To get started you will need 2 or 3 things depending on whether or not you have 2FA enabled on your hypixel account.
- Go to this page and open the Chrome Developer Window. Head to the Application tab.
- On the left hand side head till you see Cookies; open that panel and the hypixel.net one that follows. You should then see 2 or 3 cookies
xfNew_session
,xfNew_user
and if you have 2FA enabledxfNew_tfa_trust
. - With those three values, construct a string like this
xfNew_session=abcdef;xfNew_tfa_trust=abcdef;xfNew_user=abcdef
- replacing abcdef with your values from earlier. - Use
hypixelban.login()
with that String.
Methods
fetchPunishment.ban(id, playeruuid, callback)
- Gets ban information about a specific punishment.
The ID is the ban ID, and playeruuid is the uuid of the player with the punishment.
hypixelbanfetchPunishment;
The id
can be either the partial or full ID.
fetchPunishment.mute(id, playeruuid, callback)
- Gets mute information about a specific punishment.
Works in the exact same way as ban.