1.5.1 • Published 3 years ago

nodeactyl-v1-support v1.5.1

Weekly downloads
122
License
MIT
Repository
-
Last release
3 years ago

GitHub npm GitHub issues GitHub pull requests

I added pterodactyl v1 support to nodeactyl Promo to Linux123123 for making readme in concept with EiskalterFreund Credits to BearTS

How to install?

Install using npm:

npm install nodeactyl-v1-support

Then paste this inside your YOURAPP.js:

const node = require('nodeactyl-v1-support');
const client = node.Client
const admin = node.Admin

And now you are ready to go!

How to use?

To login to your Pterodactyl panel use:

client.login('YOUR HOST', 'YOUR CLIENT API KEY', (logged_in, msg) => 
{
    console.log('Log in status CLIENT: ' + logged_in) // return a Boolean (true/false) if logged in.
    if (!logged_in) {
        console.log(msg.split("(Application)")[0] + "(CLIENT)") // logs the error
    }
})

// This only if you have an admin api key
admin.login("YOUR HOST", "YOUR ADMIN API KEY", (logged_in, msg) => {
    console.log("Log in statu ADMIN: " + logged_in) // return a Boolean (true/false) if logged in.
    if (!logged_in) {
        console.log(msg.split("(Application)")[0] + "(ADMIN)") // logs the error
    }
})

And then you can use any funtion you want:

client.FUNCTIONNAME('server_id').then((response) => {
	// and now functions with response for example "consle.log(response)" or what you want
})

admin.FUNCTIONNAME(<NEEDED VALUES>).then((response) => {
	
})

NOTE: You can use every function from original nodeactyl: https://docs.nodeactyl.xyz/

How our Version numbers work:

  • The first number means the release number.
  • The second number means function release.
  • The third number means Bug fix version code.

Disclaimer

I am not responsible for any damages that you cause to your servers/nodes by using this API.

Remember: This API can potentially be dangerous with the ability to Delete Servers/Nodes at an instant is extremely easy!

It is not our fault if your API key is revealed to the public. When asking for help please do not send the full stack error. This will reveal your ENTIRE Host/Application API key in the request, if someone asks you to show them the error it should only be trusted sources! (Such as the Pterodactyl Team and I). You should also have your API key changed every 1-3 days to

prevent issues like this.

1.5.1

3 years ago

1.5.0

3 years ago

1.5.9

3 years ago

1.4.8

3 years ago

1.4.7

3 years ago

1.4.6

3 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.1.3

4 years ago

1.1.2-3

4 years ago

1.1.2-2

4 years ago

1.1.2-1

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.0

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago