Instant Break protection

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-05 17:16:26 +01:00
parent 0ab5fc8fcd
commit 845e48db66
3 changed files with 27 additions and 15 deletions

View file

@ -50,12 +50,14 @@ class Player{
public $armor;
var $loggedIn = false;
public $gamemode;
public $lastBreak;
private $chunksLoaded = array();
private $chunksOrder = array();
function __construct(PocketMinecraftServer $server, $clientID, $ip, $port, $MTU){
$this->MTU = $MTU;
$this->server = $server;
$this->lastBreak = microtime(true);
$this->clientID = $clientID;
$this->CID = $this->server->clientID($ip, $port);
$this->ip = $ip;