Multi World Money
Multi World Money
Version: 2.2
Keeps money localized to worlds
This plugin is for multi-world servers that want to keep money separate between worlds. For example, you have a server with the following worlds:
- Survival
- Creative
- A Skyblock
- Acid Island
- Prison
- PvP
MultiWorldMoney will give players a separate balance in each world! Teleport between them and the player's balance will change. Players can check their balance using the /balance command and see what they have in each world. Players can also /pay each other and money will stay in the world they pay from.
This plugin is tiny (35K) and works with economies like Essentials. If your multi-inventory plugin already separates money by world or you are using a multi-world capable economy, then you do not need this plugin.
Note: This plugin cannot prevent other plugins from changing player's balances, e.g., chest shops. If you allow players to sell items, the chest shop will credit them in the world they are in (online or offline). Therefore, this plugin is best for servers where players buy items, but not sell them. (See Known Limitations section below)
Features
- Separates money between worlds
- /pay command that pays players within a world
- Administrator give, take and set commands
- /mwm reload reloads the config and groups files from in game
- Displays world aliases from Multiverse if it is installed
- Support for world grouping (edit groups.yml)
- Configure the message shown when changing world via the config.yml file
How It Works
Player Commands
- /balance - Shows balances across all worlds and sum total
- /pay <player> <amount> - Allows a player to pay another within one world. Money stays in the payee's world.
Admin Commands
- /balance <player> - Shows the balances of <player>
- /mwm give <user> <amount> <world> - increases the player's balance by amount in world. Online players only.
- /mwm take <user> <amount> <world> - decreases the player's balance by amount in world. Online players only.
- /mwm set <user> <amount> <world> - sets the player's balance to amount in world. Online players only.
- /mwm reload - Reloads the config.yml and groups.yml file
Permissions
mwm.balance: description: Gives access to the balance command default: true mwm.pay: description: Allows players to pay each other in-world default: true mwm.playerbalance: description: Enables checking of other player’s balances default: op mwm.admin: description: Access to admin commands default: op
Required Plugins
- Vault - make sure you use the latest version!
- Some kind of Economy Plugin, like Essentials
Optional Plugin
- Multiverse-Core - will use the world aliases if used
Compatibility
- Required UUID's so 1.7.9 onwards
Installation and Configuration
- Stop server
- Download and install Vault and an economy plugin like Essentials if you haven't done so
- Download and install Multiverse-Core (Optional but recommended)
- Download the plugin and place into your plugins folder
- Restart your server
- The plugin will make a folder called MultiWorldMoney. Open that folder.
- Check config.yml
- Edit the groups.yml file to match the world grouping you want.
- Type /mwm reload in the game to reload the config and group files.
Known Limitations
- Money given to a user by another plugin or via an economy /pay command will be deposited in the world they are in now or when they logged out. To avoid this disable the economy /pay command via permissions and use MultiWorldMoney's /pay instead.
- This includes money from chest shop sales.
Source Code
The latest source is always available here: GitHub multiworldmoney Source Code
Problems
Please file a ticket if you find a bug.
Stats Disclosure
This plugin utilizes a plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Visit mcstats.org if you would like to learn more about the stats collected. Go into /plugins/PluginMetrics/config.yml to disable stat collecting if you wish.
@frizzbee30
Hmm, let me think about that. I've added it to the list.
@nlgamevideosnl
If you want, please submit a pull request on github with your changes and I'll consider it seriously.
@roracle
This means that it will work with a multi-world economy. The only one I know of is Miconomy. However, I don't think it is supported any more. If you have a (working) one then you would not need MWM.
I'm having an issue where some people's balances don't change at all when going to other worlds. Any fix?
My players can't use /pay command, I set permissions like this:
- -essentials.pay
- mwm.pay
When a normal user try using /pay command it says "You don't have permission..."
I have no idea on how to make mwm pay bypass the essentials one. I'm running 1.8.3, permisiosex as permission plugin and Essentials-2.x-SNAPSHOT.jar
SOLVED
I had - pay as overriden command in essentials config, if u have my same problem check you essentials config, sorry for posting I was pretty sure I had check the config before XD. Nice work i love this plugin <3
SignShops says it has multiworld economy support. How do these shops work when they say such things? I can't seem to ever get my world economies separated...
@tastybento
Ok I guess that kinda makes sense, I was going to transfer money from a parkour server, to separate PvP servers.
Anyways thanks for making a great plugin that works well and is easy to use and responding fast!
Fantastic plugin, which you already know :)
Any way to enable some sort of offline balance adjustment, even if just the set command? It;s tricky paying players or adjusting balances they shouldn't have, unless you spot them online. . I don't know if this is possible? I have tried editing the UUID files directly, but it doesn't seem to affect the balance? I'm presuming that is to do with vault?
Thanks :D
@Trevor450
You can't. The purpose of the plugin is to keep money separate between worlds. If you want a player to have one balance in multiple worlds, use the groups feature to group the worlds.
An admin can adjust balances between worlds for a player if required.
How would I make a player pay himself, but in a different world?
@tastybento
Fantastic, will do. Thanks tastybento.
@Vivi_Coral
Since V2.0, MWM now uses UUID exclusively. If you upgrade, the player files are now all UUID's so this issue is moot.
I posted this back on December 31st but it never got a reply. Please can you advise.
Under MultiWorldMoney/userdata there are users files with different spellings (capitalised and non-capitalised) with different data in them. Is this on purpose/hardcoded or can this be changed?
Due to the following it means McMyAdmin won't back them up as it can't differentiate between the PlayerOne.yml and playerone.yml
I would like to make the suggestion for it to be changed, for example:
Capitalised:
1) PlayerOne-playerinfo
2) PlayerOne-worldinfo
Non capitalised:
1) playerone-playerinfo
2) playerone-worldinfo
Also a separate thing, I use MultiWorld and not Multiverse, I assume the below on server start-up is nothing to worry about?
WARN]: [MultiWorldMoney] Multiverse-Core not found.
Thanks and regards.
@BoomerBR
works for us (with minor quirk or two,ticket raised)
not working with 1.8.6
@Smirklicious
I'm guessing deleting the player data so that it reloads as players join?
is there a way to reset everyone's mwm balance?
@Smirklicious
The only difference between 2.0 and 2.1 were a few lines to fix the /pay command exploit, so the upgrade couldn't have caused your problem. If you have any more info please file a ticket with the details and I'll see what I can do. Thanks.
@tastybento
I went from v2.0 to v2.1
@Smirklicious
Weird. What version did you upgrade from?