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(