mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-24 13:39:44 +00:00
161
This commit is contained in:
parent
2277bf4c74
commit
d4ef9299cf
1 changed files with 12 additions and 12 deletions
|
|
@ -162,7 +162,7 @@ class AchievementAPI{
|
|||
if(!($issuer instanceof Player) && !isset($params[0])){
|
||||
return "Please enter a nickname.";
|
||||
} else{
|
||||
if(isset($params[0]) && ($this->server->api->ban->isOp($issuer->username) || ! ($issuer instanceof Player))){
|
||||
if(! ($issuer instanceof Player) || (isset($params[0]) && $this->server->api->ban->isOp($issuer->username))){
|
||||
$player = $this->server->api->player->get($params[0]);
|
||||
if($player instanceof Player){
|
||||
$data = $player->data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue