Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* * * Redstone v1.0.0-BUILD * * Have fun using our software. * * @a..
Decoded Output download
#
#
#
#
#
#
#
#
# @author Developer-Envy0xc0
# @link http://vk.com/envy0xc0
declare(strict_types=1);
namespace pocketmine\entity;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\level\Level;
use pocketmine\level\sound\EndermanTeleportSound;
use pocketmine
bt ag\CompoundTag;
use pocketmine
etwork\mcpe\protocol\AddEntityPacket;
use pocketmine\Player;
class EnderPearl extends Projectile{
const NETWORK_ID = 87;
public $width = 0.25, $length = 0.25, $height = 0.25, $gravity = 0.03, $drag = 0.01, $hasTeleportedShooter = false;
public function __construct(Level $level, CompoundTag $nbt, Entity $shootingEntity = null){
parent::__construct($level, $nbt, $shootingEntity);
}
public function onUpdate($currentTick){
if($this->closed) return;
$this->timings->startTiming();
$hasUpdate = parent::onUpdate($currentTick);
if($this->age > 1200 or $this->isCollided){
if(!$this->hasTeleportedShooter){
$this->hasTeleportedShooter = true;
if($this->getOwningEntity() instanceof Player and $this->y > 0){
$this->getLevel()->addSound(new EndermanTeleportSound($this->getPosition()), array($this->getOwningEntity()));
$this->getOwningEntity()->teleport($this->getPosition());
}
$this->kill();
}
$hasUpdate = true;
}
$this->timings->stopTiming();
return $hasUpdate;
}
public function spawnTo(Player $player){
$pk = new AddEntityPacket();
$pk->type = EnderPearl::NETWORK_ID;
$pk->eid = $this->getId();
$pk->x = $this->x;
$pk->y = $this->y;
$pk->z = $this->z;
$pk->speedX = $this->motionX;
$pk->speedY = $this->motionY;
$pk->speedZ = $this->motionZ;
$pk->metadata = $this->dataProperties;
$player->dataPacket($pk);
parent::spawnTo($player);
}
}
Did this file decode correctly?
Original Code
<?php
/*
*
* Redstone v1.0.0-BUILD
*
* Have fun using our software.
*
* @author Morozov
* @website vk.com/au7yn
*
*/
eval(base64_decode('CiMg4pWt4pSB4pSB4pSB4pWu4pWx4pWx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