From 42a1ba68de6455e9b9c7f62f934e180fad7fb94e Mon Sep 17 00:00:00 2001 From: "MyrulXzavier (GamerXzavier)" Date: Wed, 14 Sep 2016 16:47:58 +0800 Subject: [PATCH] Update ARCore.php --- src/ARCore/ARCore.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ARCore/ARCore.php b/src/ARCore/ARCore.php index 852eb0f..251dbc0 100644 --- a/src/ARCore/ARCore.php +++ b/src/ARCore/ARCore.php @@ -710,7 +710,7 @@ public function onJoiningPlayerSettings(PlayerJoinEvent $event){ $player->setFood($this->custom->get("SetPlayerFoodBarOnJoin")); $player->setMaxHealth($this->custom->get("SetMaxPlayerHealthOnJoin")); $player->setHealth($this->custom->get("SetPlayerHealthOnJoin")); - $player->setMovementSpeed(0.14);//DO NOT MESS WITH THIS!! + $player->setMovementSpeed(0.12);//DO NOT MESS WITH THIS!! $player->setGamemode(0);//Forgot To Set A Player Gamemode To Survival??LOL NOW YOU WONT FORGOT!! //under here is non stable code $positionx = $this->getServer()->getDefaultLevel()->getSafeSpawn()->getX(); @@ -748,7 +748,7 @@ public function PRE(PlayerRespawnEvent $event){ $player->setFood($this->custom->get("SetPlayerFoodBarOnRespawn")); $player->setMaxHealth($this->custom->get("SetMaxPlayerHealthOnRespawn")); $player->setHealth($this->custom->get("SetPlayerHealthOnRespawn")); - $player->setMovementSpeed(0.14); + $player->setMovementSpeed(0.12); $player->setGamemode(0); } //This Function Will Add Percentage To Gain The Items.. @@ -766,7 +766,7 @@ public function dropdeath(PlayerDeathEvent $event){ } public function ByeVoidz(PlayerMoveEvent $event){ - if($event->getTo()->getFloorY() < 5){ + if($event->getTo()->getFloorY() =< 7){//lucky 7 $player = $event->getPlayer(); $x = $this->getServer()->getDefaultLevel()->getSafeSpawn()->getX(); $y = $this->getServer()->getDefaultLevel()->getSafeSpawn()-> getY()+1.3; @@ -777,7 +777,7 @@ public function ByeVoidz(PlayerMoveEvent $event){ $player->setMaxHealth($this->custom->get("NoVoid-SetPlayerMaxHealth")); $player->setHealth($this->custom->get("NoVoid-SetPlayerHealth")); $player->setFood($this->custom->get("NoVoid-SetPlayerFood")); - $player->setMovementSpeed(0.14); + $player->setMovementSpeed(0.12); $player->teleport(new Vector3($x, $y, $z, $level)); } }