Page 1 of 2

Open source programming for Zedwork

PostPosted: Sat Aug 04, 2018 7:34 pm
by Zedwick
I've been hard at work updating and recreating some of our essential plugins for Zurvival in preparation for updating to 1.13, and most of the essentials are done. However, as I know we have some people in our community who are interested in learning to create plugins, I thought this update period could be a good opportunity for them to get to grips with the Bukkit API. I have been intentionally trying to leave some of the simpler plugins with the hopes some of you might be interested in taking on the task of updating or recreating them as a new plugin. For those of you who are more experienced with the Bukkit API, there are definitely some more challenging code to work on too.

If I were to compile a list of projects with descriptions of what is needed, and open source some of the other plugins we use, would there be interest from the community in submitting code and working to make Zedwork better? :D

Some examples of projects which could be worked on would be:
  • Bukkit plugin to prevent iron golems from dropping loot. (very simple, good for a beginner)
  • Recreate the /sit command as a Bukkit plugin
  • Recreate the Zesty deposit items in nearby chests feature as a Bukkit plugin

Please reply below if you would be interested!

Re: Open source programming for Zedwork

PostPosted: Sat Aug 04, 2018 7:40 pm
by dogzack123
Would definitely be interested! Have limited Java experience, but looking to improve, and potentially make my own plugins at some point.

Re: Open source programming for Zedwork

PostPosted: Sat Aug 04, 2018 7:42 pm
by Jasmyn01
I'd like to help ... if you gave me the simplest easiest task in history of coding stuffs, i may or may not do it well :')

Re: Open source programming for Zedwork

PostPosted: Sat Aug 04, 2018 7:42 pm
by chester1525
I think I could take a look Zed. I am a noob so lead me to the right direction with Iron Golems.

Re: Open source programming for Zedwork

PostPosted: Sat Aug 04, 2018 7:42 pm
by iiWolfyyy
It sounds cool, but I am really not sure, I've never coded before.

Re: Open source programming for Zedwork

PostPosted: Sat Aug 04, 2018 8:00 pm
by OffLuffy
I've been spending quite a lot of time lately stalking the Spigot Plugin Development forums helping whoever seemed to be somewhat left behind. I'd recommend that if someone takes up one of these projects, that you post on there for some pointers if you hit a wall!

Alternatively, it'd be neat if there was a category for that sort of support on here as well, I'd likely hang around and give pointers whenever I'm not at work or otherwise occupied.

Re: Open source programming for Zedwork

PostPosted: Sun Aug 05, 2018 8:49 am
by Zedwick
A good place to start would be the Spigot wiki, which has a section with guides for developing plugins.

Spigot Wiki: https://www.spigotmc.org/wiki/spigot/
Plugin Development guides: https://www.spigotmc.org/wiki/spigot-pl ... velopment/

I personally use and recommend Netbeans for making plugins, there is a guide for that on the wiki, however a lot of the guides are built for either Eclipse or IntelliJ so you may wish to use either of those instead. I would also recommend Maven, which will download dependencies for your project for you (like the spigot API, for example). There is a guide for using Maven with IntelliJ on the plugin development wiki page above.

You will need to get the spigot jar, which for boring legal reasons cannot be distributed directly. You will need to build it using BuildTool. Read about that here: https://www.spigotmc.org/wiki/buildtools/

And if you're feeling up to it, Git is version control software which enables tracking and reverting history of code in a project as well as enabling various people to contribute code to a single project (even the same files, simultaneously with their changes merged). It can be a bit tricky to get to grips with, so don't worry if it seems a little daunting. However, I highly recommend it. Really helps to see what you've done in your last few code commits which broke everything in inexplicable ways ;)

Git: https://git-scm.com/
You may wish to try some of the GUI clients listed from their download page. I'd recommend Sourcetree if you are running Mac or Windows.

You can host your git repositories for your project on sites like https://github.com or https://bitbucket.com for free, allowing others to see and contribute code.

Re: Open source programming for Zedwork

PostPosted: Sun Aug 05, 2018 6:04 pm
by FunkyTechnician
Zedwick wrote:I'd recommend Sourcetree if you are running Mac or Windows.


If you have issues with Sourcetree being laggy and buggy, try GitKraken. Has support for Github, Bitbucket and Gitlab, as well as the ability to switch between identities.

As far as the actual plugin side goes, I did try Java plugins once upon a time, but I'm so tied up with Node.js (Web dev, Twitch, Discord and game management bots), I don't have time to bang my head against a wall over a different language :lol: ! Will save this thread for if/when I decide to give it a shot!

Re: Open source programming for Zedwork

PostPosted: Sun Aug 05, 2018 8:03 pm
by OffLuffy
FunkyTechnician wrote:If you have issues with Sourcetree being laggy and buggy, try GitKraken. Has support for Github, Bitbucket and Gitlab, as well as the ability to switch between identities.


Also a fan of GitKraken. Brilliant pun aside, it has a wonderful dark interface in case SourceTree is burning your eyes out. And also because of it's support for GitLab. Not many Git GUIs support GitLab, and it's good in case you want to have private repos without paying anything. GitKraken has an annoying warning about private repos, but you can dismiss it.

I'm working on the sit plugin, although I somewhat got stuck. We wanted the ability to crouch+click to sit, but crouching instantly dismounts the seat. And I thought I'd just put the seated players in a 'no-eject' list for just a moment after sitting and cancel the eject event for those players, but for mysterious reasons, being ejected from the seat (an armor stand), it doesn't trigger the eject event, so can't cancel it. If it weren't for that, I might have had it mostly ready by now.

Re: Open source programming for Zedwork

PostPosted: Sun Aug 05, 2018 8:47 pm
by FunkyTechnician
Something I forgot to mention: Bitbucket has free private repos. Incase you are like me and like your code being private until you are satisfied with it (or embarrased about messy code).

There is a private option for GitHub, but you need the premium account, which you can get for free if you are a student (have a school email address).

Do note that privating a repo makes it quite the brainache for when you get into auto-pulling and stuff.