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.
Hoping this fantastic plugin gets ported to the new API, whatever that may be!
@tastybento
Thanks :)
@frizzbee30
Yeah, sorry that's not possible from the outside. MWM doesn't actually know what is going on with any particular economy and there are no events to track, like being paid something. The only way to do what you ask that I've found is to use a multi-world-aware chest shop (like the fork of quick shop on my github) and a multi-world-capable underlying economy like miconomy.
@tastybento
Thanks, any way for you to link into chesshop's and stop the money going into the current/last player world. We are using the plugin to solve multiple issues, one of which is we will be shortly running our new prison world, and don't want chestshops depositing into players accounts there if at all possible. Alternatively some sort of log feature so we can track and redirect the payment :) Thanks
@frizzbee30
Clever work around.
I'll take another look at Multiverse aliases and see if it's possible to hook into them.
Any way to add in recognition of Aliases in multiverse? basically we have Survival Map as a world, and the plugin doesn't recognise Survival map as a world if you try to use /mwm give, it just comes up with the command format.We do have an alias of Survival though, but that's not a world according to the plugin!
got around it by adding a non spaced world to the group that survival is in to share balances.
@tastybento I posted a ticket
@luwie556
Hi - first of all - post a ticket here and provide the info. Please include a list of what plugins you are running on your server, the shop plugin you are using. The steps are that I will try to replicate the issue you are having - to do that I need to try and "copy" the server set up you have, so tell me everything in the ticket and I'll look at it.
Hello devs! i have crusial bug or error with the coding of mwm on my server when u lose money then relog ur money is back and the item you purchaced is still there please tell me how to fix this or u fix it because people are making the economy of my server horrible and everyone has billions of dollars and i need this fixed ASAP please tell me when u fix it or how i can fix it
@Peter234 Hi Peter -
3. Can you please make a "Disable NewWorldMessage" option. Because I find that players get quite annoyed when switching worlds frequently.
This is already supported, just delete newworldmessage from the config.yml file to stop any messages.
@kelson8
I recall testing with it a while ago, but not recently. It will clash with it if you try to switch on multiverse-inventories separate world money switch - which didn't work for me. So, it should work. Definitely works with Multi-Inv.
@Peter234
Hi - as this might take a few exchanges to work out - I've created a ticket so we can take our conversation offline. Please check thereand answer the questions.
does this plugin work with Multiverse-Inventories?
Ok, I have a few problems with your plugin...
1. Everytime my players or myself switch worlds for example by doing /hub then returning to Factions for say. My balance keeps getting changed between what I had originally, $0 , and a $1000 I gave myself when I installed the plugin. in other Words the Balances keep changing and moving to different worlds.
2. The permissions do not work. When I install the plugin players can not longer do /pay , I gave them permissions, took away the permission - essentials.pay , I even went to the commands.yml and made a command called pay: mwm pay , and that didn't work. It only works when I OP myself.
3. Can you please make a "Disable NewWorldMessage" option. Because I find that players get quite annoyed when switching worlds frequently.
Groups.yml : http://pastebin.com/kCDNFbYs
Config.yml : http://pastebin.com/NVdw7Cir
Thank you. And please help
@tastybento
thank you i saw that when scrolling down xD
@Cmoor
Yes, put "debug: true" into the config.yml file.
is there a way to put this plugin into debug mode? i had it on an earlier version and would fix peoples money from disappearing. and now i dont know when it happens and for what reason.i liked this feature so i could manually change the players money issue. Thanks
Thanks a lot for making this plugin, I have been searching for one like this for a long time, if this is what it says it should do, it will be perfect!
@Leaf_Ui
No problems - I made a new ticket for you http://dev.bukkit.org/bukkit-plugins/multi-world-money/tickets/16-groups-does-not-work. Please go to it and post you groups.yml file and I'll try and replicate the problem.
Sorry for posting in a closed ticket. Im a little new to the bukkit forums but anyway I tried doing the groups and the first group works but the second one does not. I am trying to combine uSkyblock and a multiworld i call Skyshop. I put it under Skyshop and have even tried the mwm reload command but it still didnt work. Why is that?