Novità
New
- Kill milestones (
milestones.yml, off by default:enabled: trueor/mobcoins settings): rewards when a player reaches a number of kills, of every mob or only of some mobs (mobs: [ZOMBIE, HUSK], MythicMobs withmythic:Name). The rewards are the same actions as the shops ([mobcoins_give],[console],[title],[sound]...) and every milestone is given once; the reached ones are saved with the stats, so with MySQL on every server. Players who already have the kills get it at their next kill. /mobcoins milestones: a menu with every milestone, the kills, a progress bar and what is reached (menus/milestones.yml, editable with/mobcoins editor milestones)./mobcoins milestones <player>opens it for another player,/mobcoins milestones reset <player>gives them again (at the next kill, every milestone he has the kills for). Permissionsflaremobcoins.command.milestones(everyone),.milestones.otherand.milestones.reset(op),player-access.milestonesinconfig.yml.- Messages in more places: every line of
lang/en.ymlcan start with[actionbar],[title] title;subtitle,[bossbar] text;seconds;COLOR,[sound] NAMEor[chat]. A list sends the message in more places at the same time. Lines without a tag go to the chat like before (the drop, combo and anti-farm messages to the action bar), so the files you have keep working. The console only gets the text. - Placeholders:
%flaremobcoins_milestones_reached%,_milestones_total,_milestone_next,_milestone_next_kills,_milestone_next_required,_milestone_next_progress. /mobcoins settings: death loss, kill milestones, payment tax and/mobcoins paytoggleare in the menu too.
Fixed
- MySQL: a booster given (or removed) on another server of the network to a player who is online here showed only after he joined again. Now it shows within
storage.refresh-seconds, with the "you got a booster" message. /mobcoins migratedidn't copy the shop limits and stock already used (purchases): now they go to the new storage too.
Updating: just replace the jar. milestones.yml and menus/milestones.yml are created, the new texts are added to your files, and milestones stay off until you turn them on.
New
- Tax on payments:
pay.tax-percentinconfig.yml(0 = off, decimals work:2.5). The sender pays the full amount, the receiver gets it minus the tax, and the sender sees how much was taken. Players withflaremobcoins.bypass.taxpay no tax (nobody has it by default, not even OPs). /mobcoins paytoggle(alsotogglepay): players can refuse incoming payments. Off by default, the server turns it on withpay.allow-toggle: true. Saved with the stats, so with MySQL it is the same on every server. Permissionflaremobcoins.command.paytoggle(everyone).- Looting bonus:
looting-bonusindrops.yml= more mobcoins for each level of Looting on the weapon (10= +10% per level, Looting III = +30%). 0 = off (default). - World multipliers:
world-multipliersindrops.ymlmultiplies the drops in some worlds (e.g.world_nether: 1.5). Worlds not in the list = 1. - Placeholders:
%flaremobcoins_drop_messages%and%flaremobcoins_pay_accept%(true / false),%flaremobcoins_world_multiplier%, and%flaremobcoins_rank%(same as_position, also_rank_weekly/_rank_monthly).
The new options are added to your config.yml, drops.yml and lang/en.yml on the first start, all of them are off by default.
New
- Death loss (
config.yml > death-loss, off by default): players lose mobcoins when they die.amountcan be a percent of the balance ("5%"), a fixed amount ("50") or random ("10-50"), with amaxper death. Options:only-pvp(only when another player kills him),give-to-killer(the killer gets the mobcoins lost) anddisabled-worlds. Permissionflaremobcoins.bypass.deathloss(nobody has it by default, not even OPs). Messages inlang/en.yml > death-loss. /mobcoins toggle: every player can hide / show the messages and sounds of the mob drops (action bar, combo, coins picked up, theactionsofdrops.yml). The mobcoins are still given; the choice is kept after restarts. Permissionflaremobcoins.command.toggle(everyone).
Updating: the new options are added to config.yml and lang/en.yml by themselves, nothing to change.
Fixed
- MySQL 8 with a normal user didn't start ("Public Key Retrieval is not allowed"):
allowPublicKeyRetrieval=trueis now in the defaultstorage.mysql.flags. Servers that already haveconfig.ymlkeep their flags: if this error shows up, the console says what to add.
New (golden mobs are on for new servers, everything else is off until you turn it on)
- Timed boosters:
/mobcoins booster give <player> <multiplier> <time>(e.g.2 1h) multiplies the mob drops of a player for some time./mobcoins booster item <player> <multiplier> <time> [amount]gives booster items to use later with a right click (good for your store). Same multiplier = the time is added; a booster item can't be used while a stronger one is active. Boss bar with the time left (1.9+),/mobcoins boostershows your boosters,removeandcheckfor admins. Boosters survive restarts and, with MySQL, work on every server of the network. - Events:
/mobcoins event start <multiplier> <time>= more mobcoins for everybody, with a message, a boss bar and a countdown;/mobcoins event stopends it. With MySQL the event is on every server of the network. - Golden mobs (
drops.yml > golden-mobs): 1% of the hostile mobs spawn golden, with a name above them and a shining outline (1.9+), and give x5 mobcoins. Chance, multiplier, mobs, name and actions can be changed. Spawner mobs and mobs of other plugins are never golden (unlessfrom-spawners: true). On for new servers; servers that update get it off (your economy doesn't change by itself): turn it on in/mobcoins settings. - Combo (
drops.yml > combo, off): kills in a row raise the multiplier (5 kills x1.1 ... 50 kills x2) for a few seconds, shown in the action bar. Mob farms can't abuse it: mobs from spawners, eggs and breeding, and kills over the limit in the same chunk don't count and get no combo multiplier. - Anti-farm (
drops.yml > anti-farm, off): most mobcoins per hour from mobs, and fewer mobcoins after many kills in the same chunk. - MythicMobs 4.x and 5.x:
mythic: SkeletonKingin a drops.yml entry (alsoentity: "mythic:Name"or a list),entity: MYTHICfor every MythicMobs mob without its own entry,mythicmobs.normal-entries(mobs without an entry use ZOMBIE, HOSTILE ...) andmythicmobs.level-bonus(extra percent per level). Found by itself, no library needed; one quick lookup per kill.{mythic}= name of the MythicMobs mob in drop actions. - Stats:
/mobcoins stats [player]shows mobs killed, golden mobs, mobcoins from mobs (total, week, month and position), best combo, active booster and the most killed mobs. Placeholderskills,kills_<mob>,earned,golden_kills,best_combo... - Weekly and monthly top:
/mobcoins top weekly|monthly [chat]and three new buttons in the top menu (all time / this week / this month, the shown one shines) plus a "Your stats" button. When a week or a month ends the best players get the rewards ofconfig.yml > tops(off by default):[mobcoins],[console],[message],[broadcast], positions like1,2,4-10. With MySQL they are given only once for the whole network; a server that was off gives them when it starts. - Notes (
config.yml > withdraw, off):/mobcoins withdraw <amount>turns mobcoins into an item to trade, right click to get them back. Every note has its own id saved in the storage and can be redeemed once: copied or duped notes give nothing (also across a MySQL network). Not in creative mode (flaremobcoins.redeem.creative). - Sell loot (
config.yml > sell, off):/mobcoins sellopens a menu (put the items in, close = sold),/mobcoins sell hand,/mobcoins sell all,/mobcoins sell prices. Only normal items are sold (no renamed items). - New switches in
/mobcoins settings(golden mobs, combo, anti-farm, notes, sell, weekly and monthly rewards) and/mobcoins statsin Player access. - New placeholders:
top_weekly_<n>_name/_mobcoins,top_monthly_<n>_...,position_weekly,position_monthly,earned_weekly,earned_monthly,combo,combo_multiplier,booster,booster_time,event_multiplier,event_time,event_active,hour_left. - New permissions:
flaremobcoins.command.stats(.others),.sell,.withdraw(everyone),.booster,.event(op),flaremobcoins.booster.use,flaremobcoins.redeem(everyone),flaremobcoins.redeem.creative(op). /mobcoins migratealso copies stats, boosters and the event.
Improved
- New options of
drops.ymlare added to the file of the server by themselves, with their comments; your mobs and multipliers are never touched. New elements of the plugin menus are copied with their quotes and comments. - Paper: a mob death cancelled by another plugin gives no mobcoins.
- Blocks the editor writes again, new shops of the chest builder and the new lines of an update are written like the files of the plugin: texts in "double quotes", lists as
- item. - The console says when a menu file of the plugin got new buttons or texts.
/mobcoins booster removealso tells the player; the "Your stats" button of the top is hidden when stats are off fo
Fixed
- Permission multipliers were given to every OP.
flaremobcoins.multiplier.vip/mvp(and every multiplier ofdrops.yml) are not plugin.yml permissions, and Bukkit gives undeclared permissions to OPs: OPs got the highest multiplier on every drop. Now a multiplier counts only when the permission is really given (permissions plugin,*included). - Saving from
/mobcoins editor(and the chest builder) wrote the whole shop file again: quotes, lists and long lines changed, and on 1.8 - 1.17 the comments inside the file were lost. Now only the values that changed are written, everything else stays as you wrote it. /mobcoins settingswrote whole numbers as500.0and removed a comment at the end of the line: now500, and the comment stays.layoutwas missing in the tab completion.- PlaceholderAPI balance placeholders gave 0 for offline players with SQLite / MySQL: they are now read in the background (refreshed every minute), the server never waits.
- After
/mobcoins layout remove <name>the command/<name>kept answering "no shop called ..." until a restart (Paper): now it answers like an unknown command. /mobcoins shop <shop> <player>from the console with a wrong shop sent the error to the player instead of the console./mobcoins removesaid "Removed 99,999,999" when the player had less: it now shows what was really removed./mobcoins topshowed new balances only after the next refresh (60 seconds): the list is read again when it is opened.
Improved
- Toggles of
drops.ymlin the settings menu say so in chat (drops.yml > enabled is now ...). - Setting the main shop to the one it already is gives a confirmation too.
- A plugin menu turned off says "This menu is turned off." (it said "The shop is turned off.").
- The startup banner says "PlaceholderAPI: downloading..." while auto-install is getting it.
Rebuilt from scratch on the Flare base (same as FlareTokens 4 and FlareReferrals).
- One jar for Spigot, Paper, Purpur and other forks from 1.8.8 to 26.x, Java 8 or newer. Newer features (boss bars, hex colors, titles with times, custom model data) are used only where the server has them.
- New text engine without libraries: MiniMessage tags,
&codes, hex&#rrggbb, gradients, rainbow, click and hover in every message. The 3.x<GRADIENT:#a-#b>syntax still works. - New files:
config.ymlwith short explanations, chat messages inlang/en.yml, shops inshops/, mob drops indrops.yml. New options and messages are added by themselves in future updates. - Automatic update from 3.x: old files saved in
backup-3.x/, settings moved to the new config, shops moved toshops/, the global multiplier kept. Balances and player multipliers are not touched (same YAML file, SQLite file and MySQL table). Your 3.xdrops.ymlworks as it is. - Balances keep 2 decimals and go up to 90 trillion (3.x stopped at 99,999,999.99 with MySQL / SQLite).
- Online balances are kept in memory and saved on a separate thread: the server never waits for the database. Changes are atomic, so several servers can share one MySQL database (balances refresh every 10 seconds). Duplicated rows left by 3.x are merged automatically.
drops.yml: entries by mob name (ZOMBIE:), groupsHOSTILE,PASSIVE,DEFAULTand the 3.x format (entity,entities,drop_value,drop_chance,drop_action). New:requirements,icon,disabled-worlds,ignore-spawner-mobs, permission multipliers (flaremobcoins.multiplier.vip: 1.5).- Multipliers: every drop is multiplied by the player multiplier × the server multiplier × the best permission multiplier.
/mobcoins multiplier set|reset|global|check. /mobcoins drops: menu with every drop, its mobs, chance and amount (with pages,menus/drops.yml).- Coins on the ground (
coins-on-ground): coins of the same player close by become one, only the killer can pick them up, hoppers and mobs can't take them, they disappear afterdespawn-seconds. Now also on 1.8 - 1.13. - Shops: same format as 3.x plus
rows,priority,view_requirements,[LEFT]/[RIGHT]actions,open_commandper shop, live items (update: true) and a click cooldown against double purchases. - Rotating shops: normal and premium items change by themselves,
SERVERstock (for everybody) orPLAYERstock (each player can buy X times),{stock}{max_stock}{normal_time_left}{premium_time_left}. The rotation and the stock are saved indata/state.yml, so a restart keeps the same items. - Actions:
[buy(mobcoins)],[buy(money)](Vault),[buy(tokens)]and[tokens_give](FlareTokens),[mobcoins_give]/[mobcoins_take]/[mobcoins_set]with random amounts,[BROADCAST],[REFRESH],[DELAY],[OPEN_MENU](did nothing in 3.x),[BOSSBAR]short form. - New checks:
[has_mobcoins] 100,[has_money] 100,[has_tokens] 100,[has_permission] node,[expression] a >= b(the 3.xcheck(...)forms still work). /mobcoins top,/mobcoins migrate <yaml|sqlite|mysql>,/mobcoins give|remove <player|*>, amounts like2.5k,-sfor silent changes,/mobcoins shop list.- Fixed from 3.x:
requirementin drops.yml worked the opposite way;random_decimal(1,2)gave 1 more than the maximum;enable_stackers: trueturned stacked mobs off; the coin example[mobcoins_give ]gave nothing; give / set / remove sent the "received" message to the admin instead of the player;/mobcoins balance <player>showed a missing text;[buy(...)]failed with decimal prices; the help page used FlareTokens permissions; open requirements of a shop were not checked;MobCoinReceiveEventcould not be cancelled. - Permissions:
flaremobcoins.player(balance, pay, menu, shop, drops, top — on by default) andflaremobcoins.admin. Every permission has a description, listed by/mobcoins about permissions. - PlaceholderAPI: new
%flaremobcoins_mobcoins%,_mobcoins_formatted,_mobcoins_commas,_multiplier,_global_multiplier,top_<n>_name,top_<n>_mobcoins,position. The 3.x placeholders keep working. - API:
FlareMobcoinsAPIandMobcoinsChangeEvent. The 3.x classesMobcoinsPlayerandMobCoinReceiveEventstill work. /mobcoins about(alsoversion/ver, and from the console): plugin version in green (latest) or red (outdated, with the download link), server version, Java, storage, update notifier, plugin hooks and a clickable list of every permission. On startup a new version is written in the console, and admins get a clickable message when they join. It reads the public GitHub releases (betas are never offered to stable servers) and keeps the answer for 6 hours. Turn it off withupdate-check: falseinconfig.yml. Permissionflaremobcoins.command.version(op