This file contains 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 declare(strict_types = 1); | |
namespace Logros; | |
use ReflectionFunction, Exception, OutOfRangeException, ArrayObject; | |
############################################################### | |
# > Ejemplo simple de un sistema de logros por BEcraft. # | |
############################################################### |
This file contains 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 | |
class A | |
{ | |
/** | |
* @var string | |
*/ |
This file contains 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 formulario; | |
use pocketmine\plugin\PluginBase; | |
use pocketmine\event\player\PlayerInteractEvent; | |
use pocketmine\event\Listener; | |
use pocketmine\network\protocol\DataPacket; |
This file contains 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 | |
//Mas información: https://wiki.vg/Query | |
$direccion = gethostbyname("127.0.0.1"); | |
$puerto = 19132; | |
$socket = fsockopen("udp://" . $direccion, $puerto, $error_id, $error, 30); //Pueden usar un socket creado por la extención de Sockets sin ningún problema. | |
//Veríficación del socket. | |
if (is_resource($socket) === false) { |
This file contains 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
#!/data/data/com.termux/files/usr/bin/bash | |
cd /sdcard/PocketMine || exit | |
php -f PocketMine-MP.phar && echo "Hasta luego!" |
This file contains 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 | |
/** | |
* Esta es un forma sencilla de ejecutar el software de pocketmine | |
* sin tener que compilarlo. | |
* | |
* Este método seria útil para aquellos que ejecutan sus proyectos en | |
* sus teléfonos y quieran ver/modificar el software directamente desde la raiz. | |
* | |
* Este script ha sido ejecutado con exitosamente en Android usando PocketMine para MCPE 1.1.0.55 y PHP 7. |
This file contains 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 | |
declare(strict_types = 1); | |
/** | |
* @name Clicks | |
* @author BEcraft | |
* @main BEcraft\Clicks\Loader | |
* @api 3.0.0 | |
* @version 1.0.0 |
This file contains 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 Vista | |
* @author BEcraft | |
* @main BEcraft\Vista\Cargador | |
* @api 3.0.0 | |
* @version 1.0.0 | |
*/ |
This file contains 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 | |
declare(strict_types = 1); | |
/** | |
* @name Armadura | |
* @author BEcraft | |
* @api 3.0.0 | |
* @main BEcraft\Armadura\Cargador | |
* @version 1.0.0 |
This file contains 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 | |
class A { | |
private $e; | |
public function __construct(){ | |
$this->e = new B(); | |
} |
NewerOlder