Paginated help command

This commit is contained in:
Shoghi Cervantes Pueyo
2013-03-20 18:12:06 +01:00
parent 4a9374a58c
commit 5e44ecf63b
2 changed files with 26 additions and 10 deletions

View File

@ -90,7 +90,7 @@ class BanAPI{
$output = "";
switch($cmd){
case "sudo":
$target = strtolower($params[0]);
$target = strtolower(array_shift($params));
$player = $this->server->api->player->get($target);
if(!($player instanceof Player)){
$output .= "Player not connected.\n";