Skip to content

Instantly share code, notes, and snippets.

public void tick(int tick) {
if((lastTick - lastRun) >= 20) {
//Everything here will be ran each second
}
if((lastTick - lastRun) >= 20 * 30) {
//Everything here will be ran each second
}
}
if(!file_exists($this->getDataFolder() . "config.yml")) {
@mkdir($this->getDataFolder());
file_put_contents($this->getDataFolder() . "config.yml", $this->getResource("config.yml"));
}
$this->saveDefaultConfig();
<?php
$name = $_POST['name'];
$rank = $_POST['rank'];
?>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="paypal">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="cbt" value="Return to example" />
<input type="hidden" name="business" value="[email protected]" />
<input type="hidden" name="item_name" value="Skywars2" />
@truelinux
truelinux / min.php
Created April 13, 2015 03:25
TPA SYSTEM
if ((strtolower ( $command->getName () ) == "tpa")) {
if(isset($this->parkour[$name]) || isset($this->pvp[$name])) {
$sender->sendMessage(TextFormat::RED."> Nice try...");
return true;
}
if(isset($args[0])) {
$to = $this->getServer()->getPlayer($args[0]);
$pname = $to->getName();
unset($this->tpa[$pname]);
$this->tpa[$pname] = $name;
<?php
namespace Skywars;
use pocketmine\network\protocol\DataPacket;
use pocketmine\block\Block;
use pocketmine\item\Item;
use pocketmine\utils\Config;
use pocketmine\command\Command;
use pocketmine\command\CommandExecutor;
use pocketmine\command\CommandSender;
use pocketmine\entity\FallingSand;
@truelinux
truelinux / Main.php
Last active August 29, 2015 14:17
I dont even know
<?php
namespace HoloText;
use pocketmine\Server;
use pocketmine\command\CommandSender;
use pocketmine\item\Item;
use pocketmine\command\Command;
@truelinux
truelinux / sadadsads.php
Last active August 29, 2015 14:16
Scrubs R Us
$x = $player->getX();
$z = $player->getZ();
$this->getServer()->getLevelByName($player->getLevel()->getName())->getChunk($x, $z);