Bake
Why are you all using Bake 1.6.0 and not a version above? That version gets 10 times more downloads that other (more stable) versions. (even then, 100 downloads is a lot for a plugin of this size)
IMPORTANT: Bake 1.6.0 and later doesn't fully support pre minecraft 1.13 versions, they theoretically should work on a limited basis however. I highly recommend to stop using these legacy versions
Following 1.6.2, it also uses bstats additonally, the old system remains remaining though
Why Bake?
Did you ever wonder why you had so much wheat? Do you want to encourage large Farms? Do you want to have a server in which players collaborate for their greater good?
Then it may be a plugin for you ( and your server)!
This Plugin offers that people contribute to a big bake project and then, when a certain amount of wheat has been donated, everyone online on the server get some diamonds! Or other cool stuff.
Commands:
- bake : Shows how much wheat has been already donated
- bakestats: Like bake, can be manipulated via configs to do anything you want to do
- contribute <amount>/<all>/<max>: Offer some wheat, and contribute to the great bake.
- baketop: Prints the bake leaderboard
Built for:
-Spigot 1.13 (bukkit should also work; and other mc versions may be also supported; may be different from file to file)
-Java 1.8
tested with:
-1.8.0
-1.15.2: succes
Config
This plugin has its config file, you can change the plugin's behaviour by changing the values of it.
----------------------------
Example configuration:
Looks at the config.yml within the jar file
---------------------------
Here is a list what most values do (unmaintained):
bake.wheat_Required: the amount of wheat needed until the project is finished
bake.general.slots: The amount of "slots" reserved. It should be identical with the possibilities of items.
bake.general.remember: whether to reward only players that have donated wheat
bake.general.deleteRemembered: whether to delete the array of donated players after the project was finished
bake.general.doRecordSurpassBroadcast: should a broadcast be done when the day's record is broken?
bake.general.useLeaderboard: should the leaderboard be used?
bake.general.rewardLater: should the player we rewarded when they rejoin after they contributed and the project was finished in their absence?
bake.general.noMeddle: Shouldn't the config parameter values be changed automatically by the plugin?
bake.award.useVault: Whether to use vault
bake.award.maximum: Maximum amount of items that can be rewarded
bake.award.<int>.type: type of item
bake.award.<int>.display_name: display name of item
bake.award.<int>.lore: lore of item
bake.award.<int>.chance: chance of item reward
bake.award.<int>.enchantment: Enchantments of the item
The questing system is now in use, see the quests.yml as a base point
bake.chat.progress2: What will be shown when /bake is typed, while
bake.chat.contr2: defines what should be displayed to the player that invoked /contribute
bake.chat.global.contr2: What should be displayed to the global chat when someone donated
bake.chat.finish2: What should be displayed globally when the project finishes.
Placeholders (NOT PAPI ONES!):
-%VERSION% is a placeholder that will replace the bake version
-%INTPROG% the progress that has been done / the amount donated
-%INTMAX% placeholder replacing the needed wheat
-%PRECENT% the progress as a percent
-%PLAYER% replaces the player of the action
-%LEFT% how much wheat is required to finish the project. (implemented in 1.7.0)
-%TIMES%, which replaces the amount of times the project has been completed, stored in the config.
-%TODAY%, which replaces how many projects were completed today.
-%RECORD%, which replaces how many projects were completed on the day where the most projects were completed.
-%PARTICIPANTS%, which replaces how many participants have participated in the ongoing project.
-%LAST%, which replaces the time and date when the last project got finished.
-%RECORDDATE%, which replaces the date where the most records were done. (before 1.5.2, it would show the date of the next bake project of the day after when the record was broken, now it will show the date a day before the next bake project after the day when the record was broken. Note: 1.5.2 was borked)
-%ALLTIME_CONTRIB%, which replaces the contribution that happened since time unknown
Support
Issue tracker linked above or discord: https://discord.gg/CqwMTjB.
Special requests can also be done via mail: [email protected], however some time may pass until you get a reply
----------------------
Bstats:
Hi,
I like this plugin and use this on bikkit 1.16.3 :-)
Maybe, you can give an update to
- sign Left Click[Commands]
- ingame setup GUI
- villager/pillager/piglins
So, I can do this self with other plugins.
But, more and more plugins will crash the the server for times.
THX
$$$
In reply to FarLokus:
Thanks for the suggestion, while I'm currently more keen on doing a full recode as the way I'm coding now has changed dramatically over the past 6 months and the plugin is getting more and more bloated.
> sign Left Click[Commands]
This is something that I might add, however as of now can be done with other plugins
> ingame setup GUI
While it makes sense that it's added unfortunately I believe that it's too complex to implement it anytime soon.
> villager/pillager/piglins
I'm not sure what you mean by that. Do you mean NPCs?
Additionally I don't quite understand the latter parts, so would be cool if you were to rephrase them so I got a better understanding on what you meant
Kind regards, Geolykt
In reply to wekabu_city:
Step by step.
Take your time to code the plugin.
At first for the Sign idea i have seen sign walls on the Mobhunting Plugin,
"for create sign walls with admin signs".
The idea would be that a Admin makes a Sign wall,where a User can look trough diffrent pages "clicking on sings" of the created events. They will be setup automatically the signs for the pages.
Right Click on a Sign with the event that the user likes, where the user can join the event.
I made an example and inserted it as a Image. IDEA?
https://drive.google.com/file/d/1Vkbn0SlkSuueVKIHHw94JIXavL_c-JUR/view?usp=sharing
In addition, administrators can create groups and permissions with each group manager.
later more, by.
$$$
Is there a way I can A: Change the contribution from wheat to something else and B: Add multiple contributions(Say I want people to contribute to a common goal of potions, and I want them to contribute either bottles, netherwarts, glowstone, etc etc)
Edit: Sorry, I have no brainpower left... That or it wasn't stated very clearly. I thought I could only use this for cake.
A: Depending on version, yes. I've added with version 1.7.0 the abillity to change the quests.yml. This means you can change what is contributed under the quest "vanilla" for example under quests.vanilla.material.
B: This, depending on version, also yes, it is just as simple as making it into a list. Be aware however that the Plugin requires Materials, not item names. That usually is nothing of importance, but can be important. Here is the list of Materials for the latest Spigot version: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
This means your quests.yml may look something like that:
In reply to wekabu_city:
Thank you for the speedy reply. I do have another question. Is there a way to set a time limit? Something like a week or two before it resets the progress? Forgive me if its a stupid question.
In reply to Enderren:
Sadly no, the way the plugin works results in the contributiuons resetting at every restart, this is something I have already thought about changing in the future. Periodic resets have not come into my mind and the feature is likely to be implemented in the next update along with other stuff.
In reply to wekabu_city:
Alright, thank you for the info. I hope that you can figure it out soon. This plugin has great potential and I can't wait for it to fully develop.
I wasn't able to get the plugin to run correctly. The progress was permanently on 100%, giving rewards with every and any contribution, never resetting. Is this a known issue?
In reply to Forge_User_07356818:
First off: thanks for testing this plugin, issues like these are crucial to be fixed as soon as possible.
Your issue is currently not known and would be worringsome if it weren't a mistake on your part. I can only guess where the issue lies, but here is a list:
-You're using an untested version (for the latest version of 1.5.2, 1.13+ is untested)
-You haven't restarted the server after installing the plugin (after 1.5.1, this should have been fixed)
-bake.wheat_Required is -1
-there is some issue that results in a crash when the items are handed out (what does the console say?)
In reply to Forge_User_07356818:
Try using the latest beta release, if the error persists, come back to me
For me, the plugin doesn't give out rewards. I'm running 1.13.2 paper, there are no errors or odd startup messages and the console is stoic. It runs fine and registers as a plugin, players can use both commands. I changed rewards and their chances, I can send a picture if you need.
In reply to welkypoo:
There is a Problem that non-op players can't use both commands when not useing a permissions Plugin, however this seems not to be the problem. It should work.
Well, If your chances are too low, chances are that no rewards will be recived.
If you put maximum rewards to 0, this would also explain this.
I'd like to see the config file, If the error is on my side, I won't be able to help you within the next 2 weeks.
As far as I know I compiled it for spigot (small oof in my Side), so this might also be the problem. And what do you mean with that the console is stoic?
In reply to wekabu_city:
I think I phrased my previous statement a bit weirdly, basically what happens is when we reach the bake 100% mark, nothing happens. The console doesn't spit out an error or even a message relating to the plugin and nobody gets an item.
Here's a picture of the config
In reply to welkypoo:
Hmmm... Either it's that the Chance value must be between 0.0 and 1.0 (not Sure however) or that it shouldn't be just x but x.0; however Im not sure on that one either. I haven't done any debug testing in the second case, and haven't worked with 100% chances, you might want to Work with 99.99% chances, as, as far as I remember, the chance is a float.
I suppose my Code ist either
if (math.random() < this.getconfig(...)) { ... }
or
If ((int) (math.random()*100) < (int) (this.getconfig(...){...}
(this is Just Demonstration code, it is not how I actually did it so I might be wrong here.
You should Look at the default settings, If every value is between 0.0 and 1.0, don't use 100, but 1.0
In reply to wekabu_city:
Alright, thanks. Am I able to add or remove items on this list? There's a very niche economy on my server and some of these items could really heavily unbalance it, that's why I had some of the items set to 0.0.
In reply to welkypoo:
Currently not, and I am very aware that some would unbalanced, thus you can set the amount of wheat used to rather imense amounts, just beware that it forgets the progress made after the server was shut down.
But thanks for the suggestion!
----
There might be also some DoS capabilities in larger Servers If you set the wheat Cap low, should be however ok if the playerbase is under 20 Players.
In reply to wekabu_city:
Well, thanks for your help. I might have to remove the plugin until some way to remove items is added, but it's still a really cool plugin.