GenBucketV2 - Horizontal + Vertical w/ API (Update)

Status
This thread has been locked.

BladianMC

Premium
Feedback score
5
Posts
123
Reactions
72
Resources
0
Someone asked me to make this, and I see them going for money, which honestly isn't worth it since it's so simple, so here's a free version for both Horizontal and Vertical.

I've uploaded the source code on GitHub, so you can change everything to your liking.

Here's the example config:

Screen Shot 2017-08-22 at 17.11.01.png


https://github.com/BladianYT/GenBucketV2


DEVELOPERS

For any developer who wishes to use this, I've added a documentation on github.

Main events for logging usages of generations are

GenerationStartEvent: Called when a generation begins
https://github.com/BladianYT/GenBuc...ian/genbuckets/events/GenerationEndEvent.java

GenerationEndEvent: Called when a generations ends
https://github.com/BladianYT/GenBuc...ian/genbuckets/events/GenerationEndEvent.java

If you're looking to create generations, then you use the GenerationManager:
https://github.com/BladianYT/GenBuc...ian/genbuckets/manager/GenerationManager.java

Hopefully it's documented well, enough and should be helpful for newer people looking to do these sort of things.
 

Attachments

  • Screen Shot 2017-08-22 at 17.11.01.png
    Screen Shot 2017-08-22 at 17.11.01.png
    31.1 KB · Views: 280
Last edited:

Eric

Software Engineer
Supreme
Feedback score
14
Posts
1,762
Reactions
1,648
Resources
2
https://github.com/BladianYT/GenBucketV2/blob/master/src/me/bladian/genbuckets/Events.java use case statements
https://github.com/BladianYT/GenBucketV2/blob/master/src/me/bladian/genbuckets/ComGenBucket.javapass the main class through a constructor and access it through there

https://github.com/BladianYT/GenBucketV2/blob/master/src/me/bladian/genbuckets/Core.java defining comGenBucket as a variable is pointless, it's not being used anywhere else. onDisable is also empty, no point having it there.

https://github.com/BladianYT/GenBucketV2/blob/master/src/me/bladian/genbuckets/ItemBuilder.java build your own it's not hard

https://github.com/BladianYT/GenBucketV2/blob/master/src/me/bladian/genbuckets/Reference.java pass the main class through a constructor and define the variables through that rather than in the main class
 
Last edited:

BladianMC

Premium
Feedback score
5
Posts
123
Reactions
72
Resources
0
https://github.com/BladianYT/GenBucketV2/blob/master/src/me/bladian/genbuckets/Events.java use case statements
https://github.com/BladianYT/GenBucketV2/blob/master/src/me/bladian/genbuckets/ComGenBucket.javapass the main class through a constructor and access it through there

https://github.com/BladianYT/GenBucketV2/blob/master/src/me/bladian/genbuckets/Core.java defining comGenBucket as a variable is pointless, it's not being used anywhere else. onDisable is also empty, no point having it there.

https://github.com/BladianYT/GenBucketV2/blob/master/src/me/bladian/genbuckets/ItemBuilder.java build your own it's not hard

https://github.com/BladianYT/GenBucketV2/blob/master/src/me/bladian/genbuckets/Reference.java pass the main class through a constructor and define the variables through that rather than in the main class

1) Optimisation wise makes no different, look wise, fair enough.

2) It was originally when listener was in same class, while I was testing, probably just forgot to change it it.

3) When I update it eventually it'll be used, such as adding in game commands, and just saving the config just incase, it was a small plugin I released since everyone was paying money for something so easy.

4) GregZ is one of my developers from my previous network, we compared and contrasted and his was better, which is why I use it right now.

FFA used to be one of the gamemodes on the server, hence I still use it.

http://www.mc-market.org/threads/232817/

5) I know, I know, old habits die hard, when we work on paid projects I do it, but when it's such a simple plugin I just do it the lazy way, my dev team keeps telling me the same thing ;)
 

BladianMC

Premium
Feedback score
5
Posts
123
Reactions
72
Resources
0
What do you mean? GregZ didn't make that. That's an itemstack utility i've used many many times. It has the exact same documentation too. Boy didn't you get it wrong. The class is called ItemBuilder there too.

If you're releasing it open source, you might aswell fix your plugin. If you're releasing it open source, document your software.

If you're releasing it open source make your software readable.

That's the thing, I wasn't planning to release it open source, I sort of just went with it, because I had 3 people ask me for the plugin, so I put it up quickly for anyone to take and use.

I'll eventually edit it properly with the correct documentation, and fix it up.

Good thing I had my eclipse glasses next to me, because the code in the Reference class makes me cry for help.

I really don't remember why I made it like that, 3 AM me does weird shit, I'll fix it all up as soon as I'm done.
 

NiczzyGFX

Premium
Feedback score
15
Posts
144
Reactions
17
Resources
0
.jar?
 
Status
This thread has been locked.
Top