mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Added Event support
This commit is contained in:
parent
d48a1a6ce3
commit
e43c45768d
@ -100,7 +100,7 @@ echo " done!"
|
||||
#php-event
|
||||
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://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"
|
||||
echo " done!"
|
||||
|
||||
|
@ -80,6 +80,12 @@ if(!extension_loaded("zlib") and @dl((PHP_SHLIB_SUFFIX === "dll" ? "php_":"") .
|
||||
++$errors;
|
||||
}
|
||||
|
||||
if(extension_loaded("event")){
|
||||
define("HAS_EVENT", true);
|
||||
}else{
|
||||
define("HAS_EVENT", false);
|
||||
}
|
||||
|
||||
if($errors > 0){
|
||||
console("[ERROR] Please use the installer provided on the homepage.", true, true, 0);
|
||||
exit(1); //Exit with error
|
||||
|
Loading…
x
Reference in New Issue
Block a user