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

How to setup math library?

Discussion in 'Development' started by Nora1903, Jun 18, 2018.

  1. Nora1903

    Nora1903 Slime

    Messages:
    82
    GitHub:
    cuongvnz
    I'm coding plugin using pocketmine\math\vector3.php
    And i found i found that pocketmine had removed math library and now it on https://github.com/pmmp/Math
    But how can i setup and continue coding plugin ?
     
  2. MineBuilderFR

    MineBuilderFR Spider

    Messages:
    8
    GitHub:
    MineBuilderFR
    PocketMine use composer, you can clone PocketMine locally with git:
    Code:
    git clone --recursive https:/ /github.com/pmmp/PocketMine-MP (Recursive for lang etc..)
    cd PocketMine-MP
    
    and install all external PMMP library with composer :
    Code:
    composer install
    
    Then you can put PocketMine in external library according to your IDE (For PHPStorm : Setting : Language & Frameworks : PHP : Include Path)

    or install the PocketMine.phar directly and put it in external library. (Much simpler solution that works as well)
     
    Last edited: Jun 18, 2018
  3. Nora1903

    Nora1903 Slime

    Messages:
    82
    GitHub:
    cuongvnz
    Do that like you say and i will got a pmmp.phar that have math library right ?
     
  4. MineBuilderFR

    MineBuilderFR Spider

    Messages:
    8
    GitHub:
    MineBuilderFR
    Last edited: Jun 18, 2018
  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.