diff --git a/src/API/BanAPI.php b/src/API/BanAPI.php index d8bffbb4..bf3fa6dc 100644 --- a/src/API/BanAPI.php +++ b/src/API/BanAPI.php @@ -52,7 +52,7 @@ class BanAPI{ console("[INFO] Usage: /kick [reason]"); }else{ $name = array_shift($params); - $player = $this->api->player->get($name); + $player = $this->server->api->player->get($name); if($player === false){ console("[ERROR] Player \"".$name."\" does not exist"); }else{