Target player gets notified of op

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-06 19:28:24 +01:00
parent 66fe5d2a3e
commit 8a345e6582

View File

@ -103,6 +103,7 @@ class BanAPI{
$this->ops->set($user); $this->ops->set($user);
$this->ops->save(); $this->ops->save();
$output .= $user." is now op\n"; $output .= $user." is now op\n";
$this->server->api->chat->sendTo(false, "You are now op.", $user);
break; break;
case "deop": case "deop":
$user = array_shift($params); $user = array_shift($params);
@ -112,6 +113,7 @@ class BanAPI{
$this->ops->remove($user); $this->ops->remove($user);
$this->ops->save(); $this->ops->save();
$output .= $user." is not longer op\n"; $output .= $user." is not longer op\n";
$this->server->api->chat->sendTo(false, "You are not longer op.", $user);
break; break;
case "kick": case "kick":
if(!isset($params[0])){ if(!isset($params[0])){