Skip to content

Instantly share code, notes, and snippets.

@svilex
Last active June 10, 2021 15:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svilex/fb5d1b541798edf74f8da8486c5cc903 to your computer and use it in GitHub Desktop.
Save svilex/fb5d1b541798edf74f8da8486c5cc903 to your computer and use it in GitHub Desktop.
<?php
/**
* _ _
* ___ __ __ (_) | | ___
* / __| \ \ / / | | | | / _ \
* \__ \ \ / / | | | | | __/
* |___/ \_/ |_| |_| \___|
*
* @Author: svile
* @Kik: _svile_
* @Telegram_Group: https://telegram.me/svile
* @E-mail: thesville@gmail.com
* @Github: https://github.com/svilex
*
*
* @name thing
* @main svile\thing\Main
* @version 1.0
* @api 3.0.0
* @description This is used on a local PocketMine server the proxy is initially connected to
* @author svile
* @load: STARTUP
*
*/
namespace svile\thing {
use pocketmine\plugin\PluginBase;
use pocketmine\event\Listener;
use pocketmine\event\block\BlockBreakEvent;
use pocketmine\event\player\PlayerInteractEvent;
use pocketmine\event\block\BlockPlaceEvent;
use pocketmine\event\player\PlayerMoveEvent;
use pocketmine\event\player\PlayerJoinEvent;
use pocketmine\event\player\PlayerQuitEvent;
use pocketmine\event\player\PlayerChatEvent;
use pocketmine\event\player\PlayerCommandPreprocessEvent;
use pocketmine\entity\Effect;
use pocketmine\entity\EffectInstance;
use pocketmine\item\Item;
class Main extends PluginBase implements Listener
{
private $players = [];
public function onEnable()
{
$this->getServer()->getPluginManager()->registerEvents($this, $this);
$this->getScheduler()->scheduleRepeatingTask(new Timer($this), 20);
Item::clearCreativeItems();
}
public function onBlockBreakEvent(BlockBreakEvent $ev)
{
$ev->setCancelled();
}
public function onPlayerInteractEvent(PlayerInteractEvent $ev)
{
$ev->setCancelled();
}
public function onBlockPlaceEvent(BlockPlaceEvent $ev)
{
$ev->setCancelled();
}
public function onPlayerMoveEvent(PlayerMoveEvent $ev)
{
$ev->setCancelled();
}
public function onPlayerJoinEvent(PlayerJoinEvent $ev)
{
$ev->getPlayer()->setGamemode(1);
//$ev->getPlayer()->setImmobile();
$e = Effect::getEffect(Effect::BLINDNESS);
$ei = new EffectInstance($e, 360000, 0xff, false, false);
$ev->getPlayer()->addEffect($ei);
$ev->setJoinMessage('');
foreach ($this->getServer()->getOnlinePlayers() as $p) {
$ev->getPlayer()->hidePlayer($p);
$p->hidePlayer($ev->getPlayer());
}
$this->players[$ev->getPlayer()->getName()] = 1;
}
public function onPlayerQuitEvent(PlayerQuitEvent $ev)
{
$ev->setQuitMessage('');
unset($this->players[$ev->getPlayer()->getName()]);
}
public function onPlayerChatEvent(PlayerChatEvent $ev)
{
$ev->setCancelled();
}
public function onPlayerCommandPreprocessEvent(PlayerCommandPreprocessEvent $ev)
{
$ev->setCancelled();
}
public function tick()
{
foreach ($this->players as $name => &$ticks) {
if (++$ticks > 600) {
$p = $this->getServer()->getPlayerExact($name);
if ($p !== null)
$p->kick("§c\xe2\x80\xa2You're taking too long to choose a server\n§cContact §fsvile#9322 §con Discord if you need help", false);
unset($this->players[$name]);
}
}
}
}
use pocketmine\scheduler\Task;
class Timer extends Task
{
private $plugin;
public function __construct(Main $plugin)
{
$this->plugin = $plugin;
}
public function onRun(int $currentTick)
{
$this->plugin->tick();
}
}
}
@leetowners
Copy link

Can I have my Full time Own proxy server so I don't get banned from proxy Please I love Hacking it's fun I was legit for a couple years and now I've started hacking Please and make more Hacks so it's better and the Killaura range has to be more than 5 blocks Love this thanks Please Make me a full time proxy server

@DarkPhantom2605
Copy link

Dude what the hell I played yesterday for 30 mins then I banned for 24 hours ok
BUT when after 24 hours I connect to the proxy then and it connected but my game crashed so I reopen my mcpe THEN U TRY TO CONNECT AGAIN IT SAYS YOU PLAYED FOR 30 HOURS U WILL UNBAN IN 24 HOURS WHAT WHY I WAIT FOR 24 HOURS THEN I CONNECT BUT WHEN I RECONNECT IT SAYS YOU PLAYED FOR 30 HOURS/MINS WHY DUDE ITS LIKE 2 MINS TO CONNECT MY PROXY FREE TRIAL WHY IT HAPPENS NOW I HAVE TO WAIT FOR 24 HOURS AGAIN WHY DUDE PLEASE FIX THAT THING please

@Jazzr420
Copy link

It’s fine for me Works every time Nice job making this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment