mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Instant Break protection
This commit is contained in:
parent
0ab5fc8fcd
commit
845e48db66
3 changed files with 27 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue