mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-24 13:39:44 +00:00
Target player gets notified of op
This commit is contained in:
parent
66fe5d2a3e
commit
8a345e6582
1 changed files with 2 additions and 0 deletions
|
|
@ -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])){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue