From 68e1deb83071ce479ad9685bffec84296e83402a Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Sun, 8 May 2022 20:29:41 +0300 Subject: [PATCH] fixing --- src/API/ConsoleAPI.php | 1 + src/Player.php | 3 +++ src/world/Entity.php | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/API/ConsoleAPI.php b/src/API/ConsoleAPI.php index a568e444..54c4ddbe 100644 --- a/src/API/ConsoleAPI.php +++ b/src/API/ConsoleAPI.php @@ -40,6 +40,7 @@ class ConsoleAPI{ $this->register("stop", "", array($this, "defaultCommands")); $this->register("defaultgamemode", "", array($this, "defaultCommands")); $this->server->api->ban->cmdWhitelist("help"); + $this->server->api->ban->cmdWhitelist("status"); } function __destruct(){ diff --git a/src/Player.php b/src/Player.php index d3a510b5..4e088bac 100755 --- a/src/Player.php +++ b/src/Player.php @@ -610,6 +610,9 @@ class Player{ case DIAMOND: AchievementAPI::grantAchievement($this, "diamond"); break; + case LEATHER: + AchievementAPI::grantAchievement($this, "leather"); + break; } }elseif($data["entity"]->level === $this->level){ $pk = new TakeItemEntityPacket; diff --git a/src/world/Entity.php b/src/world/Entity.php index 7ca39b24..71c7120a 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -201,7 +201,7 @@ class Entity extends Position{ case MOB_PIGMAN: return array( array(COOKED_PORKCHOP, 0, mt_rand(0,2)), - array(GOLD_INGOT, 0, mt_rand(0,2)), + array(GOLD_INGOT, 0, mt_rand(0,1)), ); case MOB_CREEPER: return array(