SHARE
TWEET

Untitled

a guest Dec 22nd, 2013 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # PocketMine-MP Error Dump Sun Dec 22 09:21:59 AZOT 2013
  2. Error: array (
  3.   'type' => 1,
  4.   'message' => 'Call to a member function close() on a non-object',
  5.   'file' => '/***/***/***/***/**********/*****/*****/****/**/**/**/**/plugins/SimpleAuth.php',
  6.   'line' => 170,
  7. )
  8.  
  9. Code:
  10. [161]                           if(isset($this->server->clients[$CID]) and ($this->server->clients[$CID] instanceof Player) and $broadcast === true){
  11. [162]                                   $d = $this->getData($this->server->clients[$CID]->iusername);
  12. [163]                                   if($d === false){                                      
  13. [164]                                           $this->server->clients[$CID]->sendChat("**REGISTER** DO command: /register yourpassword");
  14. [165]                                   }else{
  15. [166]                                           $this->server->clients[$CID]->sendChat("**LOGIN** DO command: /login yourpassword");
  16. [167]                                   }
  17. [168]                           }
  18. [169]                           if($timeout !== false and ($timer + $timeout) <= time()){
  19. [170]                                   $this->server->clients[$CID]->close("authentication timeout");
  20. [171]                           }
  21. [172]                   }
  22. [173]           }
  23. [174]          
  24. [175]   }
  25. [176]  
  26. [177]   private function hash($salt, $password){
  27. [178]           return bin2hex(hash("sha512", $password . $salt, true) ^ hash("whirlpool", $salt . $password, true));
  28. [179]   }
  29. [180]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top