This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package MineCrap::Protocol; | |
use common::sense; | |
use Moose; | |
use Moose::Util::TypeConstraints; | |
#use namespace::autoclean; | |
use Data::ParseBinary; | |
use MineCrap::Protocol::CompressionAdapter; | |
use MineCrap::Protocol::DoubleAdapter; | |
use MineCrap::Protocol::UCS2Adapter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
int use_icmp; | |
switch (argv[0][0]) { | |
case 'I': | |
use_icmp = 1; | |
break; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
user=$1 | |
pass=$2 | |
echo "Login..." | |
oldIFS="$IFS" | |
IFS=':' | |
set -- `curl -d "user=$user&password=$pass&version=9999" https://login.minecraft.net/` | |
IFS="$oldIFS" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import StringIO | |
from construct import * | |
import def_cstpool as CTPoolLib | |
import def_member as MemberLib | |
import re | |
import os | |
import copy | |
import pprint | |
class ClassDef(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bravo/protocols/beta.py b/bravo/protocols/beta.py | |
index 05f2969..1cef167 100644 | |
--- a/bravo/protocols/beta.py | |
+++ b/bravo/protocols/beta.py | |
@@ -259,6 +259,10 @@ class BetaServerProtocol(Protocol): | |
log.err(payload) | |
def connectionLost(self, reason): | |
+ packet = make_packet("chat", | |
+ message="%s left the game." % self.username) |
NewerOlder