Skip to content

Commit

Permalink
Update ARCore.php
Browse files Browse the repository at this point in the history
  • Loading branch information
HyGlobalHD authored Sep 14, 2016
1 parent 2683ad2 commit 42a1ba6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ARCore/ARCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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..
Expand All @@ -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;
Expand All @@ -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));
}
}
Expand Down

0 comments on commit 42a1ba6

Please sign in to comment.