PteroConsole.NET
1.0.2
See the version list below for details.
dotnet add package PteroConsole.NET --version 1.0.2
NuGet\Install-Package PteroConsole.NET -Version 1.0.2
<PackageReference Include="PteroConsole.NET" Version="1.0.2" />
paket add PteroConsole.NET --version 1.0.2
#r "nuget: PteroConsole.NET, 1.0.2"
// Install PteroConsole.NET as a Cake Addin #addin nuget:?package=PteroConsole.NET&version=1.0.2 // Install PteroConsole.NET as a Cake Tool #tool nuget:?package=PteroConsole.NET&version=1.0.2
PteroConsole.Net
A simple library for connecting to a pterodactyl server console
How to use
First create a PterodactylConsole object
panelUrl: the url of your pterodactyl panel e.g. 'https://pterodactyl.file.properties/''
clientKey: an api key created by a user with access to the server you want to connect
serverUuid: the uuid of the server. this cloud be either the long or short version, e.g. '6c1c16ae', '6c1c16ae-abbe-495b-a96d-9b83e5018cbf'
var console = PterodactylConsole.Create(panelUrl, clientKey, serverUuid);
Then you should configure the events so you can listen to things sent from the server
console.OutputReceived += (sender, msg) =>
{
Console.WriteLine($"OUTPUT: {msg}");
};
The last thing you have to do is to start connecting to console
console.Connect();
If you want to close the console you just call the Dispose function
console.Dispose();
License
Copyright 2022 Marcel Baumgartner
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Newtonsoft.Json (>= 13.0.2-beta1)
- RestSharp (>= 106.15.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.