eluinhost / minecraft-auth Goto Github PK
View Code? Open in Web Editor NEWPHP Library for running a 'fake' Minecraft server that checks auth and kicks on connect
License: GNU General Public License v3.0
PHP Library for running a 'fake' Minecraft server that checks auth and kicks on connect
License: GNU General Public License v3.0
.DS_Store
is user-specific and should not appear in a project.gitignore
. Consider adding it to the user global.gitignore
instead.
/out
/bin
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
Posted from SensioLabsInsight
stream encryption should be ran on the entire client instead of per packet basis, move logic into a 'writedata' type function
in src/AuthServer/AuthServer.php, line 82
This loop uses a function. To avoid the overhead of executing the function n times, you should precalculate it before the loop.
$connection->on('status_request', function(StatusResponsePacket $packet) {
$this->emit('status_request', [$packet]);
});
$connection->on('close', function() use (&$connection) {
for($i = 0; $i<count($this->clients); $i++) {
/** @var $checkclient AuthClient */
$checkclient = $this->clients[$i];
//if we found our connection
if($checkclient === $connection) {
//remove from array and reset the keys
Posted from SensioLabsInsight
Using the yggdrasil library verify the accounts are valid.
Want to be able to expand packets easier if need be, need class structure
License "GPLv3" is not a valid SPDX license identifier, see http://www.spdx.org/licenses/ if you use an open license.
If the software is closed-source, you may use "proprietary" as license.
Posted from SensioLabsInsight
Currently a connection will be held open forever until the client disconnects or invalid data is sent or the server disconnects it. Need to implement a timeout for connections to force disconnect if no data sent.
Maybe related: UHC auth has been up for a couple of days and says 120 connections are 'open', was around 800 for last week
Need an event listener interface that you implement and add to the main class to get events for when someone logs in successfully
Didnt come up during development due to xdebug being installed
Just wondering how to kill the server after being launcher?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.