mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
Added Event support
This commit is contained in:
parent
d48a1a6ce3
commit
e43c45768d
@ -100,7 +100,7 @@ echo " done!"
|
|||||||
#php-event
|
#php-event
|
||||||
echo -n "[PHP event] downloading $PHP_EVENT_VERSION..."
|
echo -n "[PHP event] downloading $PHP_EVENT_VERSION..."
|
||||||
wget http://pecl.php.net/get/event-$PHP_EVENT_VERSION.tgz -q -O - | tar -zx >> "$DIR/install.log" 2>&1
|
wget http://pecl.php.net/get/event-$PHP_EVENT_VERSION.tgz -q -O - | tar -zx >> "$DIR/install.log" 2>&1
|
||||||
wget "http://pastie.org/pastes/7726383/download?key=lowcarnsbaqfndv1h1h9qq" -q -O event-$PHP_EVENT_VERSION/config.m4 >> "$DIR/install.log" 2>&1
|
wget https://gist.github.com/shoghicp/5470540/raw/config.m4 --no-check-certificate -q -O event-$PHP_EVENT_VERSION/config.m4 >> "$DIR/install.log" 2>&1
|
||||||
mv event-$PHP_EVENT_VERSION "$DIR/install_data/php/ext/event"
|
mv event-$PHP_EVENT_VERSION "$DIR/install_data/php/ext/event"
|
||||||
echo " done!"
|
echo " done!"
|
||||||
|
|
||||||
|
@ -80,6 +80,12 @@ if(!extension_loaded("zlib") and @dl((PHP_SHLIB_SUFFIX === "dll" ? "php_":"") .
|
|||||||
++$errors;
|
++$errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(extension_loaded("event")){
|
||||||
|
define("HAS_EVENT", true);
|
||||||
|
}else{
|
||||||
|
define("HAS_EVENT", false);
|
||||||
|
}
|
||||||
|
|
||||||
if($errors > 0){
|
if($errors > 0){
|
||||||
console("[ERROR] Please use the installer provided on the homepage.", true, true, 0);
|
console("[ERROR] Please use the installer provided on the homepage.", true, true, 0);
|
||||||
exit(1); //Exit with error
|
exit(1); //Exit with error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user