PHARLoaderNK

Experimental PHARLoaderNK 1.0.0

Compatible API Versions
1.0.0 and higher
Sourcecode
https://github.com/Trollhunters501/PHARLoaderNK/
Contributors
Creadores Program
PHARLoaderNK
Load phar files into Nukkit for PHPEngineNK!

Dependencies:
Getting started
put the tgz file in the plugins/JSENK2 folder

put your phar plugins in the plugins/PHARLoaderNK folder

THIS DOES NOT LOAD POCKETMINE PLUGINS IN NUKKIT, BUT IT CAN BE VERY EASY TO ADAPT.

How to build Phar
This script uses the JPhar library so it supports all phars that support that library.

An example of how to package

Plugin Yml in PHARLoaderNK
It is the same as nukkit except that there is no api, softdepend, depend, authors (but there is author), commands and permissions.
The main is the same as Pocketmine

Config
There is a configuration to add Java libraries with the NnClassLoader API in plugins/PHARLoader/Config/NnClassLoaderPHP.json:

JSON:
{
"NnClassLoader":[{
"maven": ["groupName:package:1.0.0"]
},
{
"objectName": "java.class.My"
}]//equal to setNnClassLoader in PHPEngineNK
}
Author
Trollhunters501
Downloads
34
Views
158
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Trollhunters501

Top