Latch's Money for Mobs icon

Latch's Money for Mobs -----

Give money to players, set custom drops and custom messages when killing mobs and using commands




Added 3 new configuration options in the config.yml

debug: This will allow server owners to see the entity name of the entity killed so custom mobs can be more easily added if set to true

bypasseconomy: This will allow the bypass of an economy check while the server is running if set to true. M4M still depends on Vault to run properly. I will not remove this dependency for the foreseeable future.

bypasspermissions: This will allow the bypass of a permissions plugin check if you don't want to add a permissions plugin and just want to have custom drops.

Bypassing economy and permissions will not display kill messages
----------, Apr 29, 2024

There was a bug in the previous 1.9.0 version which created backup yml files for 4 configuration files and used those files for the server.
This update resolves that issue and uses the old yml files.
  • config.yml
  • mobs.yml
  • messages.yml
  • items_back.yml
I apologize for the inconvenience

I also fixed the following bugs:

  • Mobs dropping items in worlds where the drop enabled values were false
  • Fixed issue that overwrote custom drops of a mob when using the /mk addCustomDrops command. Multiple drops still worked before, but only if you set multiple directly in the mobs.yml file and reloaded
----------, Jun 16, 2023

Fixed money not being rewarded when showMessages = false
----------, Jun 13, 2023

Bug Fix:
* Version wasn't properly updated in 1.8.0, so OP's were getting spammed with a message saying the plugin had a newer version. This will fix that after 24-48 hours
----------, Oct 28, 2022

Hi All!!!
I've finally released an official 1.19 update.

Mass Update and Future of Money4Mobs
The reason I've not posted an update, is I've been busy with a new job and coding for my personal survival server. I have many features for my personal server that I would like to make public, some free, some premium. Money4Mobs was created out of necessity at the time and has grown to be this amazing plugin with features I never thought was possible or wanted by other server owners. I'll continue to help owners in my Discord Server and post updates when I get a chance. For the time being, future updates to Money4Mobs will be bug fixes and when new mobs are added. Although, reason I didn't prioritize updating Money4Mobs for 1.18 and 1.19, was because no new mobs were added in 1.18 and server owners could just add the new mobs in the mobs.yml file. With all of this being said, I won't continue posting version specific updates with each update of M4M. This means that M4M should work on 1.14+... *should*.

Money4Mobs version 1.8.0 Patch Notes:
  • Updated code that gives players money set in low and high worths for the player object in mobs.yml. (Before, only a percentage of the victim's balance would transfer)
  • Updated Chinese Traditional/Simplified translations that is generated when Money4Mobs is first added to a server. (This will also regenerate if the messages.yml file is deleted)
  • Added 1.19 mobs to the config file. Current users of Money4Mobs that haven't added 1.19 mobs to the config will have them added at the bottom of mobs.yml
----------, Oct 17, 2022

No major changes were made.
The items.yml should redraw with the new items introduced in 1.18.
1.18 does not add any mobs so that is not needed.
----------, Nov 30, 2021

  • 7Adrian translated messages into polish
  • Polish language now gets added if not previously available
  • new 'percentDrop' option in mobs.yml per mob. This option is a value from 0-100 in percentage. it defaults to 100, so 100% of the time, a mob will drop money. If you set this value per mob to 50, then the money will be rewarded to the killer 50% of the time
----------, Nov 18, 2021

mobName is now an option that can be added to the reward money and subtract money messages
moneyRewardedMessage:
moneySubtractedMessage:
----------, Sep 22, 2021

* Updated File name structure
----------, Sep 5, 2021

* Added add and remove of world commands
* Added output messages associated with each command
* Added new option to config that disables reward of money for every mob on every world
----------, Aug 26, 2021

Updated version
----------, Aug 16, 2021

  • Fixed ZombifiedPiglin name change
  • Added ability to disable reward of money from different worlds
  • World change allows for multiverse worlds
  • Fixed NPE in removeCustomDrops command
----------, Aug 16, 2021

* Updated Chinese Traditional and Chinese Simplified translations based on suggestions by Flandre_tw
* These changes are only for the default setup and will only update if the config.yml is not present
----------, Jul 26, 2021

https://github.com/Latch93/Money4Mobs/issues/76
* Fixed a bug that wasn't rewarding money when tamed wolves killed a mob
* Added a toggle option in config.yml 'oldSpawnReasonLogic' for changes in performance, mainly in large servers or servers with stacked mobs. Information below

I've updated a toggle in the config file 'oldSpawnReasonLogic'. If this is true, then it will use the old logic which only keeps a track of mobs in the session. If this is false, it will use the newer method.

The trade off of the old method:
Pros:

  • Better performance on server
    Cons:
  • Some mobs will give money even if spawneggs/spawners is set to false. Sometimes when a chunk is reloaded, but happens when the server is restarted or reloaded
The trade off of the new method
Pros:
Keeps track of every mob spawned so no matter the instance, a mob will or will not give money based on configuration settings
Cons:

  • Performance heavy and can bog down a server if it contains a stacked mob plugin or has many players
----------, Jul 24, 2021

* Fixed an error that would randomly throw when starting server with zero users (from scratch)
* Issue linked here -> https://github.com/Latch93/Money4Mobs/issues/73
----------, Jul 8, 2021

* Added new error messages so errors shouldn't show in the console in these cases.
** Cases included but not limited to, typing in /mk without parameters and giving an incorrect parameter
* Updated the way M4M gets the economy
** This way has been tested on EssentialsX, Mineconomy and iEconomy.
*** This should work with most Vault ecomonmies. I've noticed Acomony is coded weird and I have a separate DEV build if anyone uses that economy
----------, Jul 2, 2021

* Mobs spawned ways other than natural will now get their information stored in the new mobSpawnedReasons.yml
* When mob dies by player or other mob, then their data will get removed from the mobSpawnedReasons.yml.
** This change allows chunks to be unloaded and loaded with mobs and their information will not get lost. Before this could happen and spawner mobs could get money rewarded even if the value was set to false in config.yml
----------, Jun 29, 2021

* Added new action multiplier (mountedMob)
** Multiplies money rewarded if mob killed was riding another mob, i.e., a skeleton on a spider (spider jockey)
* Updated messages.yml with new error messages
** These messages will display if a command is used incorrectly
** This should allow there to be more verbose error handling
----------, Jun 28, 2021

* Fixed an issue with action multipliers so now if config.yml.isMultipliersAggregate is false, the highest priority that is available will take precedent
----------, Jun 28, 2021

* Fixed bug with mobs not dropping items
* Removed config objects from mobs.yml and if they were set, transferred the objects to the new config.yml
* Added new action multipliers
** If 'isMultipliersAggregate' is true, then the multipliers will all add up
** If 'isMultipliersAggregate' is false, then the group multiplier will multiply the action multiplier value that is active and has the highest priority
*** New action multipliers
**** When player kills mob by fall damage
**** If the player kills a mob by a long distance. Distance is set in the longDistance object
**** When player kills a mob with a Projectile (Bow or Crossbow)
**** If player kills the mob without a weapon
***** If the player beats a mob to death with a weapon, then money will not be rewarded
----------, Jun 27, 2021

* https://github.com/lakeboy93/Money4Mobs/issues/60
* Using /mk reload now does not double or triple the amount received from a mob
* Refactored code so it should run smoother and have less issues
----------, Jun 27, 2021

* Readded Update checker for 1.17
----------, Jun 25, 2021

* Updated users.yml language option to default to 'english' instead of 'English'
* If defaultLanguage option is set in mobs.yml, then new users will have that value set to their language instead of 'English'
----------, Jun 25, 2021

Player:
worth:
low: 25.0
high: 25.0
ipBanFarming: false
enablePercentageDrop: false
percentageDropAmount: 1


This overrides the money given by worth and instead will subtract the percentage of the player killed balance and give that amount to the player who killed

Added 2 new messages to handle this new feature

playerKilledPlayerMessage:
message: '&aYou were given &6$ %amount% &aand now have &6$ %balance%'
location: ActionBar
playerKilledByPlayerMessage:
message: '&6$ %amount% &awas taken and you now have &6$ %balance%'
location: ActionBar
----------, Jun 23, 2021

*** 'operator' group needs to remain ***
Permissions for each group will be as follows:
'm4m.multiplier.[groupName]'
So if in the mobs.yml file you have
group-multiplier:
level-1: 1
superbad: 1
operator: 1

The 2 permissions would be
* m4m.multiplier.level-1
* m4m.multiplier.superbad

Only 1 M4M multiplier group permission is allowed per permissions group
----------, Jun 22, 2021

* Checks if Money4Mobs version on server is out-of-date and displays a message in the console if it is
* Added option in mobs.yml to disable the display of the Money4Mobs update message
** checkForUpdate: true
----------, Jun 22, 2021

* Removed logger when reloading Money4Mobs
----------, Jun 20, 2021

* Added feature to customize all messages in Money4Mobs
* Added feature to set any message to display in the Action Bar or in player chat menu
* Added Horse to mob list
* Added Multiplier options is a player kills a mobs whilst riding another mob
** Documentation here -> https://github.com/lakeboy93/Money4Mobs/blob/master/README.md
----------, Jun 20, 2021

* 2 different messages display for if the mob worth is more or less than 0.
If the mob worth is -5, then it will subtract $5 from the player's balance.
https://github.com/lakeboy93/Money4Mobs/issues/44
----------, Jun 12, 2021

  • Adde New mobs
    ** Axolotl
    ** Glow Squid
    ** Goat
  • Adde Zoglin to mobs.yml
  • Adde 1.17 items to items.yml
    *** Candle Cakes are unable to be added at this time. An error occurs. I will attempt this fix once more updates to Spigot are created
----------, Jun 11, 2021

* The command /mk toggleKM had a bug recently introduced that broke the game and stopped rewarding money. This issue added a line in users.yml which needs to be deleted if owners have this issue.
----------, Jun 9, 2021

removed console log
----------, Jun 8, 2021

* Added Ability to have up to 15 multiplier groups
** You need to add levels to the multiplier section of the mobs.yml in the pattern as 'level-6' 'level-15' etc
* Resolved bug that rewarded players with money if they killed themselves with their own tnt
----------, Jun 8, 2021

* Updated M4M to allow console commands
* * Bug logged here -> https://github.com/lakeboy93/Money4Mobs/issues/35
----------, May 26, 2021

* Fixed issue where Piglins were not rewarding money, as the mobs.yml did not contain a proper Piglin object
* Updated code to update version number of mobs.yml and add Piglin mob to the list
----------, May 25, 2021

* Added Russian Translation
----------, May 20, 2021

* Added ability to use decimal places in money worth amounts
* Added ability to ban the reward of money from players on the same ip
** This was added so players can't kill an alt account and transfer money
** You can add a bypass to this option with the permission 'm4m.bypass.ipBan'
----------, May 17, 2021

Decided enchantment command should be removed.
----------, Jan 18, 2021

* Updated Documentation here -> https://github.com/lakeboy93/Money4Mobs/blob/master/README.md
* Documentation shows how to properly set custom kill message
* Toggle option for if players receive money when their tamed wolf kills a mob
----------, Jan 8, 2021

Fixed issue with rewriting mobs.yml when bees low value is 0
----------, Dec 16, 2020

Removed console logs
----------, Nov 29, 2020

  • new command added which gets manual changes to config files
  • /mk reload
  • permission -> m4m.command.mk.reload
----------, Nov 29, 2020

* Made the m4m.rewardMoney permission ignore case
----------, Nov 28, 2020

Before I had chinese simplified as 'Chinese'. Now it is listed as Chinese_Simplified and the new Traditional Chinese is 'Chinese_Traditional'
----------, Nov 28, 2020

* Chinese is not a valid language option anymore. It's Chinese_Simplified currently, as I am adding Chinese_Traditional in the next update
----------, Nov 28, 2020

* Resolved error surrounding language option
** You need to check that your users.yml contains a language option for each user
** Check if defaultLanguage is added in mobs.yml
----------, Nov 28, 2020

Fixed issue with new players not getting defaultlanguage
----------, Nov 28, 2020

  • Added /mk defaultLanguage command
  • Permission -> m4m.command.mk.defaultLanguage
    You need to add this line to mobs.yml for this change to take effect
    defaultLanguage: English
  • Click here to view the default mobs.yml and compare yours with this one -> Click Here
----------, Nov 28, 2020

removed messages
----------, Nov 27, 2020

  • Players can now get money from killing other players
    This needs to be added to the mobs.yml for this to work if you started from an older version. add it to the list of mobs
    Player:
    worth:
    low: 25
    high: 25

  • OP users now get money from killing mobs. Fixed this issue by adding this line to the mobs.yml
    group-multiplier:
    level-1: 1
    level-2: 1
    level-3: 1
    level-4: 1
    level-5: 1
    operator: 1


----------, Nov 27, 2020

  • Fixed issue where OP users did not bypass permissions
  • Resolved error handling issue
  • Displays commands in mk tab menu based on player's permission
----------, Nov 27, 2020

* Added German language option for M4M messages
----------, Nov 23, 2020

* Added bStats
----------, Nov 23, 2020

* Resolved Error for when entity spawn reason can't be found
* Plugin now handles the error and neatly shows error message
----------, Nov 23, 2020

  • Updated config file, but the plugin does not update this manually, so check out https://github.com/lakeboy93/Money4...oduction/Mobs4Money/Latch/Money4Mobs/mobs.yml and add the section that starts with group-multiplier.
  • group-multiplier:
    operator: 1
    level-1: 1
    level-2: 1
    level-3: 1
    level-4: 1
    level-5: 1


  • Permissions are as follows
    m4m.multiplier.level-1
    m4m.multiplier.level-2
    m4m.multiplier.level-3

    m4m.multiplier.level-4
    m4m.multiplier.level-5
  • Multiplier for players will take the highest permission level. If they have 2 permissions set for some reason, say level 3 and level 5, level 5 multiplier will take precedent
----------, Nov 23, 2020

  • Added Italian M4M messages
  • Added Italian language option for /mk language [Language]
----------, Nov 21, 2020

* Resolved issue with adding new players to users.yml
* In previous version 1.2.9, players weren't properly added to users.yml
----------, Nov 14, 2020

* Resolved ArrayOutOfBounds errors when using /mk language command and backspacing
----------, Nov 14, 2020

* Before this update, the kill message would show upon server restart and the user could toggle it on or off for themselves. Now, their selection will be saved in the users.yml file.
* It 'should' auto add the showMessage option in the users.yml for each player when you add the updated M4M.jar
* The command to toggle the message is still -> /mk toggleKM
----------, Nov 13, 2020

* I've added the ability for each player to change their name with the command '/mk language [language]
* Permission for new command is 'm4m.command.mk.language'
* Created new users.yml that stores users and their language preferences.
* New users default to language to English
----------, Nov 13, 2020

* Added Chinese (Simplified) and Hindi Languages
----------, Nov 12, 2020

* Even though players would get rewarded money from killing phantoms, it wasn't set in the mobs.yml
----------, Nov 12, 2020

  1. I've removed the config.yml as it wasn't needed
  2. I've added a language option in mobs.yml
  • Current values allowed are English, French and Spanish
  • These languages are only for the messages sent to the player for completing a command or killing a mob
----------, Nov 12, 2020

Updated Error Handling and Tab Complete Menu
----------, Nov 10, 2020

Resolved IllegalArgumentException Error
----------, Nov 9, 2020

* Added perm to receive money on mob kill - m4m.rewardMoney
----------, Nov 9, 2020

* Added additional error handling
* Added new commands
----------, Nov 9, 2020

Before this update, the permission wasn't set properly. Now, in order for user's to receive money from mobs, they need the permission 'm4m.rewardmoney"
----------, Nov 8, 2020

I'm still learning how to properly add child commands. But for how I coded it, a user needs to have proper perms for each command.
----------, Nov 8, 2020

Drops command shows what, if any custom drops and their chance to drop with the following command ->
  • mk drops [mobName]
----------, Nov 8, 2020

I've added the ability to add a percent chance to each custom mob drop
----------, Nov 8, 2020

You are now able to add custom drops to mobs.
* Add as many drops to mobs as you want.
* Choose if mobs keep default drops
Documentation to come
----------, Nov 3, 2020

This functionality is something I want to implement in the near future. Essentially, it sets custom drops I wanted for my personal server but I didn't mean to set it for the public release.
----------, Nov 2, 2020

Resource Information
Author:
----------
Total Downloads: 11,119
First Release: Nov 1, 2020
Last Update: Apr 29, 2024
Category: ---------------
All-Time Rating:
30 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings