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

DevTools

Discussion in 'Help' started by AffanStarPure, Apr 18, 2017.

  1. AffanStarPure

    AffanStarPure Baby Zombie

    Messages:
    106
    GitHub:
    AffanStarPure
    Anyone know what we can use DevTools i really don't know it lol i so bad plugin can anyone explain it
     
  2. MK500

    MK500 Slime

    Messages:
    77
    GitHub:
    markkrueg
    When you place DevTools in your plugins directory, you are able to load plugins from source directories.

    So, for example; if the contents of your plugins directory look like this:

    Code:
    plugins
      DevTools.phar
      EssentialsPE_source (from GitHub download, for example)
    Then when you start your server the EssentialsPE plugin should load. You can then modify and test changes to the yml and php files in EssentialsPE, restart your server, and the changes are there immediately.

    There are several useful commands DevTools also gives you:

    If you were to use this command:

    Code:
    makeplugin EssentialsPE
    There would then be a EssentialsPE.phar in a DevTools directory in your plugins directory. In this way you can edit plugins and create new .phar files for your server.

    You can also extract .phar plugins that are in your plugins directory using the command:

    Code:
    extractplugin <plugin name>
    There would then be a directory with that plugin's name in a DevTools directory in your plugins directory. This would contain the source code for the plugin. You could then move this source code directory directly to your plugins directory and run it that way, edit it, and use makeplugin to make it back into a phar. Make sure not to have the same plugin as both a .phar and source directory at the same time :)

    If you are running PocketMine from source, using a src directory, you can also use this command:

    Code:
    makeserver
    This will create a .phar of the PocketMine server in a DevTools directory in your plugins directory.

    You can learn more about DevTools here:

    https://github.com/pmmp/PocketMine-DevTools
     
    Last edited: Apr 18, 2017
    AffanStarPure likes this.
  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.