dump playerscache optional

This commit is contained in:
kremsy 2014-05-10 13:33:41 +02:00
parent 3a70b7e902
commit 1b142192ab

View File

@ -317,9 +317,14 @@ class Player {
/**
* Var_Dump the Player
*
* @param bool $dumpCache
*/
public function dump() {
public function dump($dumpCache = false) {
var_dump(json_decode(json_encode($this)));
if ($dumpCache) {
var_dump("PlayerCache:", $this->cache);
}
}