Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # PocketMine-MP Error Dump Sun Dec 22 09:21:59 AZOT 2013
- Error: array (
- 'type' => 1,
- 'message' => 'Call to a member function close() on a non-object',
- 'file' => '/***/***/***/***/**********/*****/*****/****/**/**/**/**/plugins/SimpleAuth.php',
- 'line' => 170,
- )
- Code:
- [161] if(isset($this->server->clients[$CID]) and ($this->server->clients[$CID] instanceof Player) and $broadcast === true){
- [162] $d = $this->getData($this->server->clients[$CID]->iusername);
- [163] if($d === false){
- [164] $this->server->clients[$CID]->sendChat("**REGISTER** DO command: /register yourpassword");
- [165] }else{
- [166] $this->server->clients[$CID]->sendChat("**LOGIN** DO command: /login yourpassword");
- [167] }
- [168] }
- [169] if($timeout !== false and ($timer + $timeout) <= time()){
- [170] $this->server->clients[$CID]->close("authentication timeout");
- [171] }
- [172] }
- [173] }
- [174]
- [175] }
- [176]
- [177] private function hash($salt, $password){
- [178] return bin2hex(hash("sha512", $password . $salt, true) ^ hash("whirlpool", $salt . $password, true));
- [179] }
- [180]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement