Inactive [DEV] PythonLoader v0.3.1 - Load Plugins written in Python [1.1-R6]

Discussion in 'Inactive/Unsupported Plugins' started by masteroftime, Aug 8, 2011.

  1. Offline

    masteroftime

    PythonLoader 0.3
    This plugin allows developers to code bukkit plugins in the python programming language. The plugins in python can either use a thin wrapper to the standard Bukkit API, or the newer decorator API. For more detailed instructions for installing this plugin and how to code plugins, take a look into the Readme on Github.

    Features:
    • Load bukkit plugins written in python.
    Installation:
    Put PythonLoader.jar into plugins directory and jython.jar into lib directory (within bukkit folder not plugins folder).

    PythonLoader
    Jython (By downloading and using Jython you accept the Jython License)
    Source Code

    I have to give special credits to @lahwran who created the whole decorator API and corrected many of my mistakes. :)

    Changelog: Version 0.3.1

    Version 0.3.1
    • Updated to CB 1.1-R6
    Version 0.3
    • Updated to CB 1.1-R1
    • Changed to new EventHandling System
    Version 0.2
    • Added decorator API
    • Invalid plugin exceptions are thrown when an invalid python plugin is loaded
    • Seperate Python Interpreter for each plugin
    • JavaPlugin's event executor creation is now directly used
    Version 0.1.1
    • Changed plugin.yaml to plugin.yml
    • Removed some debug output
    Version 0.1
    • First official release.
     
  2. Offline

    Redyugi

    I <3 you. :)
    Now I can't decide if I want to scrap my work I have already done or... lol.
    Thanks again :)
     
    Monkeyboystein and Clem like this.
  3. Offline

    masteroftime

    Lol! sorry that wasn't planned :p
     
  4. Offline

    Zeerix

    You load plugin.yaml instead of plugin.yml
     
  5. Offline

    MalcolmLC

    eeek its here :D
     
  6. Offline

    masteroftime

    Thanks for pointing that out. I corrected it now.
     
  7. How to write plugins in python? I'm interested in this because I like python and probably prefer to write in that language. Does plugin require python interpreter?
     
  8. Offline

    masteroftime

    I added a very minimalistic tutorial on how to write plugins in python. And the plugin uses a java implementation of the python interpreter which is inside jython.jar
     
  9. Offline

    Seta

    this sounds amazing <3 thx
     
  10. When ? Now i can not wait :D
     
  11. Offline

    masteroftime

    look at the first post again its already there ;)
     
  12. Offline

    MalcolmLC

    So far The only thing I could manage to do is to make a plugin show text when it starts up XD. That is still amazing for me since I have never made a plugin before
     
  13. Offline

    Redyugi

    Well, I had a couple hours work last night converting my Java code to Python, and am ready to get started again. :)
     
  14. Offline

    MalcolmLC

    Im not sure If I should be asking you this question or not , but when I try
    this
    Code:
    from org.bukkit.plugin.python import PythonPlugin
    class randomname(PythonPlugin):
         def onEnable(self):
             some more random junk
    A red line shows up under the "PythonPlugin" thing in the first line
     
  15. Offline

    Redyugi

    Well, it really depends on your IDE that you are using. It probably just means it can't find the file in your working directory. Don't worry about it.
     
  16. Offline

    MalcolmLC

    Alright , I think it stoped after I added bukkit.jar and the pythonloader.jar to the python path .
     
  17. Offline

    Redyugi

    You actually add things to the path? :confused: I am too lazy to do that. XD

    @masteroftime , is there a way to hook into, say.. Permissions? Like.. how would I import it?
    I would assume that its something like what I have below, but I am not any where near testing my plugin, and asking you is easier =P
    Code:
    from ..com.nijiko.bukkit.permissions import Permissions
    EDIT:
    Well, not so much Permissions. I just read how to hook into it, and I don't need to import it so...
     
  18. Offline

    MalcolmLC

    Oh and what IDE are you using ,Im using Eclipse with pydev
     
  19. Offline

    Redyugi

    I only use Eclipse for Java. PyScripter is my choice of poison for Windows, and ERIC for Linux.
     
  20. Offline

    MalcolmLC

    Ill try that, I dont actualy like useing Eclispe but I know I need somthing more than the normal python idle.
     
  21. Offline

    DragonSoulSong

    You sir, are awesome! I love Python and I was actually thinking about doing something like this in the future, and then I joined the bukkit forums, was looking around and saw that you'd already done it! Now I can make plugins in Python if I wish. :) (I know Java too, but I like Python much more. XD )
     
  22. Offline

    MalcolmLC

    If you make a plugin in python can I take a look at it 0_o I need to learn. And I really want to look at other plugins so I have a better Idea of what the heck to do .
     
  23. Offline

    RastaLulz

    Sounds very interesting!

    Make one for PHP, and I'll be set. :D
     
  24. Offline

    Redyugi

    I haven't uploaded anything yet, but here is my Github for RCDungeons. I should have something up by the end of the day so...
     
  25. Offline

    MalcolmLC

    Thank you so much

    One last thing , What is github exactly XD I have seen stuff on it alot but I still dont understand what it is really.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  26. Offline

    Redyugi

    Just a place to host source code projects. Allows for teams and branches and stuff.
     
  27. Offline

    MalcolmLC

    Oh , That sounds sweet .
     
  28. Offline

    DragonSoulSong

    Sure, no problem, I'd be glad to be able to help. :) I'm still learning myself. (Well, learning how to make plugins with the Bukkit API, not how to program...I already know how to do that. :D )
     
  29. Offline

    MalcolmLC

    Im still learning both XD
     
  30. I have a lot of errors ;/
     

Share This Page