Skip to content

DaisukeDaisuke/unphar-pmmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

features

This is a plugin to unpack phar or plugins.
This plugin is made for PocketMine-MP.
The plugins in this branch support multiple apis.

  • This is a plugin for developers!
  • Can decompress safely without activating the plugin!
  • Supports simultaneous decompression of phar!

Unsupported features

  • Asynchronous decompression is not supported.
  • Metadata and Stub extraction are not supported.
  • When PocketMine-MP.phar(other than the plugin) is decompressed with this plugin, the information necessary for starting the program in the phar will be lost, and it may not work even if the source code is recompressed.

usage

  • First, copy the plugins you want to unpack to the [PocketMine-MP]/data_folder/unphar/target folder.
  • Next, type unphar in the console and execute the command.
  • After executing the command, the plugins will be unpacked into the [PocketMine-MP]/data_folder/unphar/output folder.

note

The file or directory is created if it does not exist, and is overwritten if it already exists.
If editing the unzipped code, it is recommended to copy it to another directory.

console output example

unphar
[21:05:02.011] [Server thread/INFO]: [unphar] unphar - start
[21:05:02.014] [Server thread/INFO]: [unphar] unphar - DevTools.phar
[21:05:02.030] [Server thread/INFO]: [unphar] unphar - PocketMine-MP.phar
[21:05:03.984] [Server thread/INFO]: [unphar] unphar - exit.

permission

command permission
unphar Console only

license

Plugin License
DevTools LGPL-3.0 License

The two lines of source code have been copied from the old DevTools.