My dumbass forgot to change the version number in the plugin...
my bad
for a list of changes go
here
Almost a year and a month after I said I was working on it, I finally got it done. This update includes:
Additions
- Eco-Handler Rewrite => Support for CoinsEngine, though currently only for one currency
- Updated GUI and UTIL stuff
Bug-Fixes
- Eco-Set Menu now works up to version 1.20.4
- some more, forgot which ones though
- (no idea if the weird chat bug is till around, so yeah...)
Removed
- Had to disable the explicit maraidb support, since for some reason the package added a few mb to the file size which spigot didn't like...
Currently mysql is fully supported (at least version 8) while mariadb compatabillity might depend on your setup
Known Bugs
- You can still shift click items into the GUI since my fixes haven't worked so far....
If you want a way around that, refer to the conversation between me and SecretxCipher in the report-a-bug channel on the discord
New Features:
- A toggle in the config file for self-bounties
Fixed Bugs:
- Fixed the bug causing bounties to not drop at all
- Fixed a bug which I accidentaly introduced in the last patch:
The migrator would always detect old data and rename the folder causing the save data to not load after a restart
- Fixed a bug in the LANG causing the hover message in the take message to not appear
LANG-Changes:
- added line: self-set-disabled
CONFIG-Changes
- added line: self-bounty-allowed
Bug-Fixes
- Replaced getTranslationKey() with custom method to allow for more backwards compatabillity (Reported by TheQuingFengX)
- Improved the Migrators abillity to recognize old data (Reported by GhostOfValhalla)
This is the second rewrite of LuckyBounties, but this time, it's from the gorund up. Almost all the internal stuff of LuckyBounties has changed which of course means that all the
save data from 2.x isn't compatible anymore.
But before you delete those files: I've implemented a migrator, which should automatically recognize the old savedata and when you execute the "/lb update bounties" command, upgrade them to the 3.0 standart. As always, please make a backup of the old data before trying this, as I can't garantuee that there are no bugs.
When you want to use updated data from 2.x in SQL, please update the data while in file mode, then swicth to SQL mode in the config, reload the plugin with "/lb reload" and use the "/lb transfer local sql" command to transfer the data (As with the upgrade of the data,
please make backups just in case)
For information on the JSON GUIs see
WIKI
As always, this is a new release, so bugs are to be expected. If you encounter any please report them via: The Discussion, GitHub or Discord
New
- SQL Support for MySQL and MariaDB
- SuperVanish + PermiumVanish integration (Plugin specific and Metadata check) for even more vanish compatabillity
- worldguard flags
- reworked epxire system
- towny integration (thx to ItsJules)
- new LANG-System allowing for color-gradients in messages
- new JSON based GUI System which means you have 100% control over the layout and style of the GUIs
- ReturnBuffer GUI for seeing the return-buffer of specific Players
Still here
- Economy Support through Vault
- PAPI support (Placeholder names have changed!!)
- Commands for setting bounties (only Player for now)
- Cooldown
- Whitelist/Blacklist
In development
- Console commands for adding
- Commands on event
- periodical Ranking-Message
- periodical Random Bounties
Will take a while (if it ever gets done)
- Offline Player Bounties (difficult because of permissions)
Just a quick update for adding 1.19.4 support
thx to Char9346 for quickly reporting this bug
As it turns out, I completely broke economy support in update 2.7
Sorry for everyone who had issues with that, but thankfully I got alerted quickly and managed to fix it
Bug Fix
- Plugin should no longer produce error when joining server
Bug fixes:
- The /bounties set <player> command will no longer suck all the items from your inventory
- The plugin should no longer display players who are using vanish in the GUI's, however, I can give no guarantees since the vanish plugins might be written differently than expected
Additions:
- Bounties can now expire after a certain time (Configrable in config)
- Bounties can be returned to their setter (after expire or when cleared => configurable in config)
- Bounties which should be returned, but who's setter is offline, will be stored in a "returnBuffer". If you want to remove someones "returnBuffer", remove the [...].return-buffer.bounties file with that person's UUID (Will get a GUI in future updates)
- You can whitelist or blacklist items from being set as bounties (The whitelist check will always overpower the blacklist check)
- You can now configure commands for the following Events in the new commands.yml file:
- kill-player-without-bounty
- on-set-bounty
- on-set-eco-bounty
Changes:
- The commands which get triggered with the events for killing an innocent player, or setting a bounty are moved to commands.yml
As always this is the first revision of a new version, so please backup the most important save files of the plugin before updating, as bugs should be expected
I have returned from my hiatus and I have brought with me some more bug fixes and features:
Fixes
- The plugin does not spam errors when players get a bounty set on them while leaving
- The plugin will not produce an error when trying to broadcats the ranking message
Additions
- the penalty command has been changed to a list, so you can execute multiple commands
- there are now console commands:
/bounties reload
/bounties add [PLAYER] [ITEM] [AMOUNT]
/bounties add [PLAYER] eco [AMOUNT]
/bounties remove [PLAYER] [AMOUNT]
NOTE: these command will only work in the console, for players please use the normal player commands
This update fixes a duping bug
Other fixes/additions include:
- A weird bug that prevented players from opening the bounty page
- A minimum eco-bounty amount (forgot to mention it in the last update)
- A new debugLogger, for even faster bug hunting
- added a command to open a players bounty menu directly from the command-line: /bounties open <playername>
Just a quick patch to fix an issue with the hover thing in the collect message
So... first up happy new year, and thanks for 1000 downloads.
This update is basically just a collection of the sporadic work I've done on the plugin over the last month or two. I would give you a rundown on what bugs have been fixed and what has been added, if I could remember.
So here's what I do remember:
- [TARGET] and [PLAYERNAME] were switched in "bounty-set-global", so now it's back to setting the setter and target names correctly
(If you fixed it by switching the places, you'll have to switch them again)
- 1.19.3 is now completely supported
- The [SYMBOL] was removed from the LANG system, instead, it will now use the formatting functionality from vault, to automatically format eco-text
- The API was updated to only use Bukkit Events from now on. This allows compabillity with discordsrv for example
- I added a singular back button in the GUI's, which takes you from the bounties list to the playerlist
There are probably a ton of small fixes in this update, but I can't remember which those are.
[I have still not found a single bug in the ranking message code, so I guess you just have to pray that it works fine, and sometimes it will work, sometimes it won't]
Touching on the roadmap from one of the last updates:
1 of 3 planned features has made it in this update, I think that symbolises my motivation right now. I will keep working on this plugin, but this is just a free time project for me, and my motivation to work on those usually follows a wave pattern, so right now I'm at a low of motivation, but in a few months, I'll probably start pumping out one update after the other again. What does this mean for you? Well, you'll probably have to wait some time between updates. That's it
I've recieved multiple reports of a bug that didn't deduct the players money when they set an eco bounty through the gui. This should fix it. Additionaly, I've recieved a report that the ranking-message doesn't work. I've looked into it, but I couldn't find any bug, so for now the feature is broken. It will be fixed later on
This Bug mostly affected larger servers:
When more than 22 players are online, the GUI will produce pages
The mentioned bug resulted in an error whenever someone tried going to the next page. This should be fixed now
Plans for the next updates:
This week will be rather stressful for me because of school, so updates will take some time, but here's a plan what I want to include:
Update 2.6:
- GUI-Back buttons
- Offline-Player bounty menu
- Filters for the bounty-player menu (search by name, eco-amount, number of bounties etc.)
Update 2.6.1:
- SQL support (might be moved into 2.6, depending on development speed)
- Setting bounties from the console
Note that this is
NOT a definite plan on what will be added when, but rather a roadmap that gives a general idea on what is planned. This means:
- If features are deemed unready, they'll be moved into a later update
- I will still take Suggestions and will add them onto the list
- I am NOT promising that these features will be added in exactly that order
After some work and some horrible implementations (please don't judge my code) All versions from 1.18.2 upwards are now 100% supported. Other Versions (currently 1.18.1 and down until 1.17) are 90% supported, without the chat hover thing (This can be implemented later on), but haven't been tested yet.
thx for your patience, and sorry for any inconveniences this bug has caused
-lucky
As always, if you find any bugs please immediatly report them, thx
I decided to make a discord server to get a more central point for support and suggestions:
https://discord.gg/Cc6AfggkMM
Additions:
- Automatic LANG and CONFIG updates -> you shouldn't have to reset the files with every update
- Take-Bounty-Eco message
- The set Item message will now display item properties when hovering over the item name
- You can now toggle the ranking message between eco and item mode and the message will only target Players who are online
Eimoh showed me a "bug" which prohibits the take-message to appear globally when the gamerule showDeathMessages is false. To fix this I have added a option which toggles the take-bounty message between death-message-override and normal server message
Bug fixes:
- The "Ranking-Message" never actually got sent, 'cause I checked the setting "ranking-message-enabled" instead of "send-ranking-message". The message should now send correctly
- Thx to GhostOfValhalla for pointing out, that the messages for a bounty getting didn't show up. Should be fixed now
- Cooldown didn't properly apply to the GUI-set buttons, when setting an eco-bounty. Should be fixed
Additions:
- New config-option: op-ignore-cooldown. Self explanatory => Let's operators always set bounties, ignoring the cooldown
Additions:
- Developer API (See WIKI, Requested by GhostOfValhalla)
- AnvilGUI for setting eco-bounties (Requested by PokeZero)
- 3 new PlaceHolders which give the amount of money in an eco bounty
- eco_bounty_money => player's eco bounty
- top_eco_bounty_money => highest amount
- all_eco_bounties_money => all bounties together
I also moved some stuff around internally, to make sure the plugin doesn't conflict with my, or any other developers plugins
Thx to hrdu for pointing out that the plugin still logs each individual player when saving bounties, This was a test feature during dev
Bug fixes:
Saving logs are condensed
the /b remove command can only be accessed when the player has lb.op and lb.remove (since it is an admin command)
I've finally done it, and added back the abillity to remove individual bounties
Changelog:
- Players can canel individual bounties by clicking on them (if they were set by themselves)
- Operators can cancel anyones bounty (must have both lb.remove and lb.op permissions)
- The name of the person who set a bounty can now be displayed on the bounty-items (will get removed when the item is dropped)
- You can now disable the abillity to set bounties on yourself
Config changes:
-
Code (YAML):
set-by-lore
: false
shows the name of the setter of an bounty on the item
-
Code (YAML):
allow-self-bounty
: true
Allows players to set bounties on themselves
Lang changes:
-
Code (YAML):
#GUI - Titles
head-lore-overflow
:
"&8..."
item-lore-set-by
:
"&8&l Set by [PLAYERNAME]"
unknown-setter
:
"UNKNOWN"
#Messages - Errors
self-bounty-error
:
"&cYou cannot set a bounty on yourself"
inventory-full
:
"&cYour Inventory is full"
The aforementioned bug, which was prohibiting the GUI from opening after an economy bounty was set on a player, has now been fixed.
Thanks again, to Draem who reported this issue.
In fixing the bug, I have also added economy bounties to the lore that appears on the heads in the GUI
Changelog:
- Added lb.drop permission which, when removed will prohibit a player from dropping his bounties when killed
- Added the option to disable items to be set as bounties all together
- Added text that will display the first 5 bounties set on a player in the GUI's head-lore
So now, about the 1.8 integration:
It's done, however my luck won't stop hitting me in the chest:
First my hard drive acts up, deletes half of my files in all m plugins, meaning a bunch of work repairing all of that, and then to top it off, when I get the repairs done, my minecraft says, "what are textures?" and stops displaying them in my 1.8.8 install meaning I can't test it.
Anyway, I'm gonna try my best to get it working somehow and when it's tested I can finally upload it
I decided that I wanted to make the plugin more flexible, so I rewrote the saving system. It now encodes the information into base64 rather than encode it using the encoder I wrote on my own. This has some implications:
1. You can now practically
save everything, so most likely there won't be as many nasty saving bugs like enchantment books loosing their enchants or items loosing NBT tags
2. I will be able to work even faster on the 1.8 adaptation since the main thing holding me back till now was the way items were handled back then
3. All the
save data from previous versions
is
no longer supported
BUT I made sure to build in a sort of
upgrader into the plugin which means, you can just
start the server up, stop it again and just delete the old data.json
(Make sure to keep a backup of the data somewhere in case there is a bug)
NOTE: if you don't delete the data.json file, the plugin will always default to that, but all changes will be saved in the new system, which means,
you'll be stuck on the same save until you delete the data.json
Plans for the next few updates:
1. Item whitelist and blacklist system (requested by ZeroCoolX)
2. I'll finish up the 1.8 adaptation which should be much easier now
AS ALWAYS THIS IS A NEW RELEASE, WHICH MEANS, YOU GUESSED IT:
BUGS!
If you find any, please immediately report them either through discord or in the discussion, since a bug in the saving system could ruin a bunch of data
So...
Thanks to ChrisPBacon for reporting a bug in the LANG-system, specifically the kill-message.
The Problem was a single, misplaced '('
Should be fixed
Touching on the 1.8 support
I'm really really sorry but I haven't found time to take on a bigger project like that yet, but I promise that I will take some time to do it. My last exam for the near future is tomorrow, so I will have time after that, thx for your patience
-Lucky
Thanks to LeGeNdOfGoW's report I was able to find a bug that messed with my PlaceholderAPI integration.
Bug Fixes
- Placeholders are up and running again
- Setting item bounties with the command is working again
Additions
- Placeholder and Ranking system should be more accurate now
- new Placeholder %lb_top_eco_bounty% shows the player with the most money set on him (Only works with the Vault integration)
First off: thanks to everyone who has suggested features and reported bugs.
You were the ones that basically kept my motivation going.
This rewrite includes a bunch of planned and requested features, though I did drop some of the old ones.
Added:
Cooldown
Proper Vault and Economy integration
LANG-file
Actual reload functionality
Dropped but not gone (I'll add them back in later):
Random Bounties
The economy integration based of commands
This means several things:
1. The plugin mainly supports Vault based economy plugins, which for some might seem like a step back, but having a proper integration is cleaner and less buggy
2. You can now translate the entire plugin using the LANG-file
3. I can implement new features much faster and more efficiently, so if you want a new feature, feel free to suggest it to me
Touching on the 1.8 support that was requested: I haven't looked into it yet, because I was focusing on rewriting the current version of the plugin, however I will look into it when I find that the current version is good enough.
Of course it wouldn't be a Lucky made plugin if it didn't have some bugs, that I didn't remove yet:
When using commands from the console, sometimes there will be errors. Those aren't function errors so the plugin is fine, but rather they are because my plugin tries to send a message back, but of course the console isn't a player so it just throws out an error
When using the Vault integration sometimes it doesn't recognize your economy plugin because the economy plugin gets loaded after luckybounties. This is normal and to fix it, you just have to reload luckybounties after the sevrer has started
I haven't completely tested the cooldown feature, so if you discover some bugs when using the plugin please report the bug to me over the discussion or discord (Lucky44#9796)
Thanks, for using Luckybounties
-Lucky44
As requested by
Roos-Skywalker I have added a bunch of permissions to the plugin so now you can give your players the following permissions:
lb.set : allows the player to set (NOTE: this is default true, so you'd have to disable it in luckperms or whatever you're using)
lb.exempt : players with this permission are exempt from bounties, so no one can set bounties on them
lb.reload : allows the player to reload the plugin (reloading is still buggy)
Bug Fixes
Had to fix a bug, where the config only registered the last part of the message-intervall:
When you set "1_h:1_m:1_s" it only read the "1_s" part
Should be fixed now
Added a few features requested by jokbon:
- An announcement system, which will periodically send a customizable message in the chat
- PlacheolderAPI support:
4 placeholders:
- lb_bounty => shows the number of bounties on a player
- lb_collected => the number of bounties a player has collected
- lb_top_bounty => the player with the most bounties
- lb_top_col => the player who collected the most bounties
On top of the new features, I updated the spigot integration, so now the plugin should be completly compatible with 1.19
In the future I will add another placholder for the amount of items set on a player and/or the amount of money set on them
So, thanks to kiekeltje, I was able to locate a bug, which prohibited the bounties from dropping on kill. If anyone had this issue before him, I'm sorry about that, but I'm always open to bug reports. Most of my plugins don't get updated often, so if you find any sort of bug, you can write it in the reviews, or contact me on discord. I'm more than happy to help
Bug fixes
Until now, the plugin would always search for the world named "world" to drop the items in. This was now updated to choose the world the player was killed in.
I actually did it... I gathered the motivation to finally add shulker support. Sorry it toook so long, but now it's here.
New Features
- You can now use Shulkerboxes as bounties
This is just a small experimental release, in which I added the feature to give players a bounty after they've killed another player, who had no bounty on their head.
New Features:
- Optional death penalty (The way this works, is that the plugin executes a command, so you can also customize this to give players rewards or something like that)
In this release I fixed a bunch of bugs which prohibited the eco support from functioning. I also added tab completion and a command to remove money bounties from players. It gets announced in chat when a player sets a bounty now too.
New Features:
- Remove command, to remove a amount of money from a player's bounty
- Chat announcement when a player sets a bounty, OR if enabled when the system sets a random bounty
Bug fixes:
- Money bounties now get correctly displayed in the bounty menu
- Money now gets actually subtracted and added (not yet tested) from/to your account when setting/receiving a bounty
In this release I fixed a bunch of bugs which prohibited the eco support from functioning. I also added tab completion and a command to remove money bounties from players. It gets announced in chat when a player sets a bounty now too.
New Features:
- Remove command, to remove a amount of money from a player's bounty
- Chat announcement when a player sets a bounty, OR if enabled when the system sets a random bounty
Bug fixes:
- Money bounties now get correctyl displayed in the bounty menu
- Money now gets actually subtracted and added (not yet tested) from/to your account when setting/receiving a bounty
Turns out there was a bug
(and a pretty big one at that)
There was a bug that disabled the plugin on load. It's fixed now
(yes the version number is a joke)
THERE IS A PROBLEM IN THE CONFIG:
economy-item: gold_nugget
should be
economy-item: GOLD_NUGGET (All item names must be in caps)
In this release there are a bunch of new features like
"pseudo economy support" and random bounties
For me it's 22:02 at the time of uploading this, so I can't be bothered to actually completely test it.
If there are any bugs, just try to contact me
New Features:
- There is pseudo economy support (can be configuered via the config file) The "support" relys on commands, so I don't know if it works that well
- There is now a function with which you can make the plugin give random bounties to players every now and then (Can be configured in the config File)
Version 1.2
So basically, the last version was a pile of bugs. In this version most of them should be fixed and theres even a new feature.
bugfixes:
- Players can now insert items into the set bounty slot again
- Players can no longer put items into the free slots in the gui
- The plugin can now load the saved bounties without causing an error
New Features:
- There is now a config file
- You can set the messages that should appear when someone takes a bounty in the config file
- The plugin now uses a custom permission lb.op instead of normal op (Can be changed)
- You can set the required permission for clearing bounties in the config file
Problems:
- As part of the update, the feature I added in the last version (Removing individual bounties) had to be disabled (For some reason it broke after I fixed the bugs) I will try and add it in again
Plans:
- A few people have requested adding currency support, so that will be my next goal (Vault and or EssentialsEco support)
In this update, I fixed a bug where a bounty an operator clicked on, wouldn't dissapear. Now an operator is able to clear individual bounties