This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(!file_exists($this->getDataFolder() . "config.yml")) { | |
| @mkdir($this->getDataFolder()); | |
| file_put_contents($this->getDataFolder() . "config.yml", $this->getResource("config.yml")); | |
| } | |
| $this->saveDefaultConfig(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace HoloText; | |
| use pocketmine\Server; | |
| use pocketmine\command\CommandSender; | |
| use pocketmine\item\Item; | |
| use pocketmine\command\Command; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $x = $player->getX(); | |
| $z = $player->getZ(); | |
| $this->getServer()->getLevelByName($player->getLevel()->getName())->getChunk($x, $z); |