mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
161
This commit is contained in:
parent
2277bf4c74
commit
d4ef9299cf
1 changed files with 12 additions and 12 deletions
|
|
@ -4,9 +4,9 @@ class AchievementAPI{
|
||||||
|
|
||||||
public static $achievements = [
|
public static $achievements = [
|
||||||
/*"openInventory" => array(
|
/*"openInventory" => array(
|
||||||
"name" => "Taking Inventory",
|
"name" => "Taking Inventory",
|
||||||
"requires" => array(),
|
"requires" => array(),
|
||||||
),*/
|
),*/
|
||||||
"mineWood" => [
|
"mineWood" => [
|
||||||
"name" => "Getting Wood",
|
"name" => "Getting Wood",
|
||||||
"requires" => [
|
"requires" => [
|
||||||
|
|
@ -162,7 +162,7 @@ class AchievementAPI{
|
||||||
if(!($issuer instanceof Player) && !isset($params[0])){
|
if(!($issuer instanceof Player) && !isset($params[0])){
|
||||||
return "Please enter a nickname.";
|
return "Please enter a nickname.";
|
||||||
} else{
|
} 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]);
|
$player = $this->server->api->player->get($params[0]);
|
||||||
if($player instanceof Player){
|
if($player instanceof Player){
|
||||||
$data = $player->data;
|
$data = $player->data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue