Resource icon

Experimental PyPlugins 1.1

Compatible API Versions
1.0.0
Sourcecode
https://github.com/aNulliHate/PyPlugins
About
Now you will be able to load python written plugins using PyPlugins, this plugin behave closely similar on how FDevTools works.

Disclaimer
This plugin is experimental use it at your own risk

This plugin is only tested on a single python plugin

Why?
This is mainly created for python developers who is having a hard time creating a logic using Java, before you will say it's useless it is actually a great help for me to create a plugin on the go using the language that I know.

I have a friend who hardly can write java but he wanted to help me creating a plugin, so I really hope this plugin will help not just him but also the community.

Usage
just download it and put it inside your plugins folder and run, it will automatically download its dependencies

WARNING!!!
This plugin is pretty much useless if you don't know how nukkit API works, but I will show how to make it easier for you in HOW TO MAKE PYTHON PLUGIN SECTION.

HOW TO MAKE PYTHON PLUGIN
in jython development it's way easier to make plugin in ECLIPSE IDE by installing PyDev Software here's how:
https://www.tutorialspoint.com/jython/jython_eclipse_plugin

add nukkit jar as a library
right click your project > properties > PyDev - PYTHONPATH > External Libraries > add jar
upload_2019-8-17_20-53-7.png


Once your done setting up your IDE you can now making python plugins, make a FOLDER inside your plugins folder!
must follow the format _py in your folder name.

upload_2019-8-17_19-36-7.png

Once done Open your ECLIPSE IDE and open your folder YOURPLUGIN_py
upload_2019-8-17_19-38-10.png

ONCE done create the 2 most important files in your plugin
- plugin.py
- plugin.yml

upload_2019-8-17_19-39-24.png


Once done configure your plugin.yml this is IMPORTANT since this will serve as the entrypoint of your plugin that means nukkit pluginloader will read this first.
upload_2019-8-17_19-41-56.png

follow this essential information that is needed. main: is the name of your class IMPORTANT

for making commands configure your plugin.yml to handle commands
upload_2019-8-17_19-46-50.png


NOW! the fun part.
upload_2019-8-17_19-48-20.png


If you configure your IDE properly nukkit API should be easier to use

PROBLEMS...IMPORTANT TO KNOW!
no python hooks for EventHandling and Listeners and more related like TaskScheduling.
it will be added soon!

for now your limited to only use PluginBase and its built in methods

Issues
you can create issue if you encounter a problem, that's the purpose of this release
Author
aNulliHate
Downloads
1,583
Views
3,054
First release
Last update
Rating
5.00 star(s) 2 ratings

More resources from aNulliHate

  • MOTD
    MOTD
    A Simple MOTD plugin in your Nukkit Server
  • VPNGuard
    VPNGuard
    A Nukkit version of VPNGuard

Latest updates

  1. Added lib auto download if not found

    added auto download and updated plugin instructions

Latest reviews

This is the best plugin, Its super fun to use and works very well. I can't wait for some new updates that include event handling, That will make the plugin even better :)
Amazing! It's the plugin I'm searching for years!
Top