1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

PocketMine.phar Please Help...

Discussion in 'Development' started by xXNiceAssassinlo, Apr 20, 2017.

  1. xXNiceAssassinlo

    xXNiceAssassinlo Spider

    Messages:
    14
    GitHub:
    xXNiceAssassinlo
    hey I don't no how to make PocketMine.phar with Website or devtools i am new around Plugin and others kinds stuff can u please help me I modifity PocketMine than I want back it to phar I don't no how..
     
  2. kaleb418

    kaleb418 Spider Jockey

    Messages:
    29
    GitHub:
    kaleb418
    You can use phar extract -f <file_name> in shell command prompt if on Linux/Mac. To re-phar the file, it's a bit more complicated. You'll have to edit your system's binary's settings (usually in a file like php.ini), setting phar.readonly = false. Then, use the PHP Phar class to create a phar file and add files/directories to it, like so:

    PHP:
    <?php
    $phar 
    = new Phar('new.phar');
    $phar->buildFromDirectory('./TargetDirectory');
     
    Thunder33345 likes this.
  3. xXNiceAssassinlo

    xXNiceAssassinlo Spider

    Messages:
    14
    GitHub:
    xXNiceAssassinlo
    I don't know What you mean sorry.
     
  4. kaleb418

    kaleb418 Spider Jockey

    Messages:
    29
    GitHub:
    kaleb418
    Uhm, ok. You may have to do a bit of work on your end to try to figure it out, I can't do much from over here :p
     
  5. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    First, do you already have PocketMine in the edited source, or is it still a .phar file? If it is already edited and is in source form, you can use the DevTools /makeserver command to create a phar, then add the phar to your server's main directory.
     
    xXNiceAssassinlo likes this.
  6. xXNiceAssassinlo

    xXNiceAssassinlo Spider

    Messages:
    14
    GitHub:
    xXNiceAssassinlo
    It extracted
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.